Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/facebook/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
类似Facebook的按钮:我可以有一个特定的页面吗;例如;由唯一(站点)按钮触发的功能_Facebook_Facebook Opengraph - Fatal编程技术网

类似Facebook的按钮:我可以有一个特定的页面吗;例如;由唯一(站点)按钮触发的功能

类似Facebook的按钮:我可以有一个特定的页面吗;例如;由唯一(站点)按钮触发的功能,facebook,facebook-opengraph,Facebook,Facebook Opengraph,对于这个项目,我正在尝试设置一个类似FB的按钮(见右上角),该按钮对所有页面都是通用的 类似按钮iframe: <iframe id="fb" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.cinematheque.fr%2Fexpositions-virtuelles%2Fkubrick_web%2Findex.php&amp;layout=button_count&amp;show

对于这个项目,我正在尝试设置一个类似FB的按钮(见右上角),该按钮对所有页面都是通用的

类似按钮iframe:

<iframe id="fb" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.cinematheque.fr%2Fexpositions-virtuelles%2Fkubrick_web%2Findex.php&amp;layout=button_count&amp;show_faces=false&amp;width=450&amp;action=like&amp;font=lucida+grande&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true"></iframe>
为了与
iframe
保持一致,我在整个站点(=主页url)中对
og:url
标记使用了相同的值,但这可能是错误的

然而,它并没有像预期的那样工作,因为FB故事没有显示正确的页面特定插图,而是我为主页指示的通用图像


你能告诉我我想做的(一个计数器/页面元数据)是否有效以及如何做吗?

我认为你想做的在语义上是错误的。Like按钮是特定于对象的,在您的情况下,它应该是用户在您的网站中喜欢的特定图像

为了显示网站的总喜欢度,您可以使用graph api对所有对象(所有图像)的所有喜欢度求和

要计算对象的相似性,请参考以下内容


谢谢。不知怎么的,我怀疑了。
<meta property="og:title" content="Kubrick et le web" />
<meta property="og:type" content="director" />
<meta property="og:description" content="Graphistes, vid&eacute;astes, stylistes, plasticiens : toute une g&eacute;n&eacute;ration de cr&eacute;ateurs talentueux s'est pench&eacute;e depuis 15 ans sur l'&oelig;uvre kubrickienne pour lui rendre hommage, la questionner, la remixer. D&eacute;couvrez notre portfolio, plus de 200 cr&eacute;ations d&eacute;couvertes sur le web." />
<meta property="og:url" content="http://www.cinematheque.fr/expositions-virtuelles/kubrick_web/index.php" />
<meta property="og:site_name" content="La Cin&eacute;math&egrave;que fran&ccedil;aise" />
<meta property="fb:app_id" content="24658885765" />
<meta property="og:image" content="http://www.cinematheque.fr/expositions-virtuelles/kubrick_web/images/600/201-1.jpg" />