类似Facebook的按钮:我可以有一个特定的页面吗;例如;由唯一(站点)按钮触发的功能
对于这个项目,我正在尝试设置一个类似FB的按钮(见右上角),该按钮对所有页面都是通用的 类似按钮iframe:类似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&layout=button_count&show
<iframe id="fb" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.cinematheque.fr%2Fexpositions-virtuelles%2Fkubrick_web%2Findex.php&layout=button_count&show_faces=false&width=450&action=like&font=lucida+grande&colorscheme=light&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éastes, stylistes, plasticiens : toute une génération de créateurs talentueux s'est penchée depuis 15 ans sur l'œuvre kubrickienne pour lui rendre hommage, la questionner, la remixer. Découvrez notre portfolio, plus de 200 créations dé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émathèque franç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" />