对于这个项目http://www.cinematheque.fr/expositions-virtuelles/kubrick_web/index.php我正在尝试为所有页面设置一个类似 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_faces=false&width=450&action=like&font=lucida+grande&colorscheme=light&height=21" scrolling="no" frameborder="0" allowTransparency="true"></iframe>
我正在尝试使用与页面相关的值来设置 OpenGraph 元标记,特别是og:image
(因为该网站是一个艺术画廊,每个页面都显示了我想用作类似插图的不同视觉作品)。因此,我想将网站拥有一个独特的点赞计数器的好处与 FB 墙故事中的各种数据和插图结合起来,具体取决于您在单击“点赞”按钮时所处的实际页面。
元标记:
<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" />
为了与 一致iframe
,我对整个站点的标记使用相同的值og:url
(= 主页 URL),但这可能是错误的。
但是,它没有按预期工作,因为 FB 故事没有显示正确的页面特定插图,而是我为主页指示的通用图像。
你能告诉我我正在尝试做什么(一个计数器/逐页元数据)是否有效以及如何去做?