问题描述
好吧,我知道有很多关于这个话题的帖子,我已经读了很多他们;然而,我还没有能够解决我的问题。我正在尝试添加一个Facebook的按钮到一个网站,并使用Open Graph协议来发送具体的信息对于发布到点击相似按钮的人员新闻Feed的帖子。
这是我在网站上使用的代码块:
HTML标签:
< html xmlns =http://www.w3。 org / 1999 / xhtmlxmlns:og =http://opengraphprotocol.org/schema/xmlns:fb =http://developers.facebook.com/schema/>
元标签:
< meta property =og:titlecontent =ethneCITY - 到达城市中心未到达! />
< meta property =og:typecontent =website/>
< meta property =og:imagecontent =http://www.ethnecity.com/dev/images/share.png/>
< meta property =og:site_namecontent =ethneCITY/>
< meta property =fb:adminscontent =61800397/>
< meta property =og:descriptioncontent =100年前,我们派传教士到各国寻找城市,今天你去城市,你找到国家。 />
像从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.comsend =truelayout =button_countwidth = 150show_faces =falseaction =likecolorscheme =darkfont =tahoma>< / fb:like>
如何在我的新闻Feed上出现? (不是我想要的) -
任何人都有任何想法为什么当我点击相似的按钮时,它只显示我的新闻Feed上的帖子,而不是使用元标记的Feed内容?
你是否打了?
它的数据很可能过时/缓存并且尚未更新。
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?
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
这篇关于Facebook Open Graph协议不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!