Facebook Open Graph 协议不起作用
好吧,我知道有很多关于这个主题的帖子,而且我已经阅读了其中很多;但是,我还无法解决我的问题。
我正在尝试向网站添加 Facebook 点赞按钮,并使用开放图谱协议发送帖子的特定信息,该帖子将发布到单击点赞按钮的人的新闻提要中。
这是我在网站上使用的代码块:
HTML 标签:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://developers.facebook.com/schema/">
元标签:
<meta property="og:title" content="ethneCITY - Reaching the unreached in the urban center!" />
<meta property="og:type" content="website" />
<meta property="og:image" content="http://www.ethnecity.com/dev/images/share.png" />
<meta property="og:site_name" content="ethneCITY" />
<meta property="fb:admins" content="61800397" />
<meta property="og:description" content="100 yrs ago we sent missionaries to the nations to look for the cities. Today you go to the cities & you find the nations." />
从 Facebook 的“点赞”按钮创建工具生成的“点赞”按钮代码:
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=145713945515336&xfbml=1"></script><fb:like href="http://www.ethnecity.com" send="true" layout="button_count" width="150" show_faces="false" action="like" colorscheme="dark" font="tahoma"></fb:like>
它现在如何出现在我的新闻源上? (不是我想要的) - http://tinypic.com/r/axi2kg/7
任何人有什么想法为什么当我单击“喜欢”按钮时,它只在我的新闻提要上显示帖子,而不是使用提要内容的元标记?
Ok, i know there's a lot of posts on this topic and i have read through a lot of them; however, i have yet to be able to solve my problem.
I am trying to add a Facebook like button to a website and use the Open Graph protocol to send specific information for the post that gets posted to the persons news feed that clicks the like button.
This is the code blocks i am using on the site:
HTML tag:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://developers.facebook.com/schema/">
Meta Tags:
<meta property="og:title" content="ethneCITY - Reaching the unreached in the urban center!" />
<meta property="og:type" content="website" />
<meta property="og:image" content="http://www.ethnecity.com/dev/images/share.png" />
<meta property="og:site_name" content="ethneCITY" />
<meta property="fb:admins" content="61800397" />
<meta property="og:description" content="100 yrs ago we sent missionaries to the nations to look for the cities. Today you go to the cities & you find the nations." />
Like button code generated from Facebook's like button creation tool:
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=145713945515336&xfbml=1"></script><fb:like href="http://www.ethnecity.com" send="true" layout="button_count" width="150" show_faces="false" action="like" colorscheme="dark" font="tahoma"></fb:like>
How it appears on my news feed right now? (not what i want) - http://tinypic.com/r/axi2kg/7
Anyone have any ideas why when i click the like button it only displays the post on my news feed like this instead of using the meta tags for the feed content?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你把它弄毛了吗?
它的数据可能已过时/已缓存,并且尚未更新。
http://developers.facebook.com/tools/debug
Did you lint it?
Its data is likely out of date/cached and it just hasn't updated yet.
http://developers.facebook.com/tools/debug