当我第一次创建我的网站时,我忽略了添加Facebook推荐的Open Graph标签(http://developers.facebook.com/docs/opengraph/),该网站现在通过fb大约有1200个Facebook喜欢:评论小部件。 http://graph.facebook.com/http://feedtheanimalssamples.com/显示了这一点:
{
"id": "http://feedtheanimalssamples.com/",
"shares": 1204
}
最近,我添加了以下OG标记:
<meta property="fb:app_id" content="59193243341" />
<meta property="og:title" content="Girl Talk - Feed The Animals Samples (old)" />
<meta property="og:image" content="http://feedtheanimalssamples.com/fta_small.png" />
<meta property="og:url" content="http://feedtheanimalssamples.com" />
但是当我添加og:type标签时:
<meta property="og:type" content="website" />
和Lint网站,我失去了所有的喜欢。 http://graph.facebook.com/http://feedtheanimalssamples.com/开始显示:
{
"id": "170545342993850",
"name": "Girl Talk - Feed The Animals Samples",
"picture": "http://profile.ak.fbcdn.net/hprofile-ak-snc4/188039_170545342993850_3277642_s.jpg",
"link": "http://www.facebook.com/pages/Girl-Talk-Feed-The-Animals-Samples/170545342993850",
"category": "Website",
"website": "http://feedtheanimalssamples.com/",
"description": "Interactively identifies the samples in the 2008 album 'Feed The Animals' by mashup artist Girl Talk.",
"likes": 1
}
(注意“喜欢”:1。)
那么:如何设置og:类型而不会丢失我的喜欢?
我试图让我的喜欢知道我已经创建了一个新的和改进的网站。我正在按照“通过图谱API发布给连接用户”下的http://developers.facebook.com/blog/post/397下的指示,但使用该API显然需要指定og:type。
谢谢!
答案 0 :(得分:0)
我对此没有答案,但看起来他们在2010年11月19日星期五的平台更新中提到了这一点:
http://developers.facebook.com/blog/post/430/
能够更改开放图表类型
根据开发者的反馈, 我们现在允许站点更改Open Graph对象类型(og:type)直到 他们收到了10,000个喜欢。这不会像计数一样重置。我们 鼓励开发人员利用这个机会添加或更正他们的Open 图形对象类型,因此它们将在中精确表示 将来
但是看看年代表,你的帖子是在这个改变之后,所以也许这只是暂时的。
答案 1 :(得分:-1)
还提供og:site_name
您的网站名称,因为它也是必需的。
答案 2 :(得分:-1)
我不是肯定的,但您可能需要“迁移”您的Like按钮。
请参阅this开发者页面。
...有这句话:
对于现有的Like按钮,以前的计数将随迁移一起保留。迁移不会影响Like计数和Like按钮的预期功能,除了上一节中概述的某些功能。
我仍然不太了解整个迁移,我自己,但它可能对你有帮助。