facebook元标记描述不更新

时间:2012-08-29 09:36:57

标签: facebook meta-tags

3天前我更新了facebook的元标记内的描述,但更改并未反映在Facebook上分享链接时的情况。相反旧的描述仍然出现。据Facebook称,它每24小时擦除一次页面,以确保描述(和其他共享数据)是最新的。但是,可以通过在Facebook URL Linter

中输入帖子URL来手动刷新它

我手动刷新它,现在等了3天。当我看到来自linter的调试输出时,它会显示正确的最新描述,但是在共享链接时仍会显示旧描述。

如何重现:

这是我们的网站:https://www.tradeinsports.se/#tis1(这是瑞典语,所以请与我联系)。如果您转到上面的链接并单击两个可用产品中的任何一个,然后在Facebook上共享,您可以看到描述与linter调试输出中显示的不同。

任何帮助都将不胜感激。

3 个答案:

答案 0 :(得分:11)

转到此页面:https://developers.facebook.com/tools/debug/

输入网址,然后点击' debug'。

点击“获取新的抓取信息'”。

该页面上的大量优秀数据对您网站的社交媒体方面有帮助。

答案 1 :(得分:8)

如果您正在实施Facebook Share或Facebook Like按钮,并且您的og:meta标签被忽略,那么它可能是Facebook过于热心的缓存。

清除Facebook缓存的最快方法是强制Facebook使用og:meta标签中的信息,这是点击URL。

在Linter中输入包含og:meta标签的网页的URL,Facebook将清除该页面的缓存。然后,您的“共享”或“赞”按钮应开始从og:meta标记中提取正确的信息。

答案 2 :(得分:1)

I was having this issue too. The scraper shows the right information, but the share url was still populated with old data.

The way I got around this was to use the feed method, instead of share, and then populate the data manually (which isn't exposed with the share method)

Something like this:

shareToFB = () => {
    window.FB.ui({
    method: 'feed',
    link: `signup.mydomain.com/?referrer=${this.props.subscriber.sid}`,
    name: 'THIS WILL OVERRIDE OG:TITLE TAG',
    description: 'THIS WILL OVERRIDE OG:DESCRIPTION TAG',
    caption: 'THIS WILL OVERRIDE THE OG:URL TAG'
  });
};