Facebook Open Graph 不清除缓存 [英] Facebook Open Graph not clearing cache
问题描述
我在使用 Open Graph 处理元标记时遇到问题.似乎 Facebook 正在缓存我的元标记的旧值.属性 og:title
和 og:url
的旧值仍在使用,即使我已经更改了它们.
我在
fbrefresh=CAN_BE_ANYTHING
后输入网址示例:
http://www.example.com?fbrefresh=CAN_BE_ANYTHING
http://www.example.com?postid=1234&fbrefresh=CAN_BE_ANYTHING
- 或访问:
http://developers.facebook.com/tools/debug/og/object?q=http://www.example.com/?p=3568&fbrefresh=89127348912
我昨晚遇到了同样的问题,我从某个网站得到了这个解决方案.
Facebook 会保存您的缓存缩略图.即使您从服务器中删除缩略图/图像,它也不会刷新.但是 Facebook 允许你通过使用 fbrefresh
我希望这会有所帮助.
I'm having troubles with my meta tags with Open Graph. It seems as though Facebook is caching old values of my meta tags. Old values for Attributes og:title
and og:url
are still used, even though I have changed them already.
I ran Lint on a page in my site, and this appeared:
Notice that there are two values for og:title
and og:url
, and the last one prevailed. However, The last two entries are the OLD entries that I used for this site. I am now currently using these meta tags (you can verify if you view the source of the HTML):
<meta property="og:title" content="Smart og rummelig pusletaske fra Petit Amour med god plads til alt – værdi 1.099 kr – køb nu kun 599 kr "/>
<meta property="og:description" content="Pinq.dk - Det gode liv for det halve"/>
<meta property="og:type" content="product"/>
<meta property="og:url" content="http://pinq.dk/tilbud/landsdaekkende/lissy/"/>
<meta property="og:image" content="http://pinq.dk/wp-content/themes/pinq/images/logo-top.png"/>
<meta property="og:site_name" content="Pinq" />
<meta property="fb:app_id" content="161840830532004" />
Why is Facebook caching og:title
and og:url
? Is anyone experiencing the same issue?
- Go to http://developers.facebook.com/tools/debug
- Enter the URL following by
fbrefresh=CAN_BE_ANYTHING
Examples:
http://www.example.com?fbrefresh=CAN_BE_ANYTHING
http://www.example.com?postid=1234&fbrefresh=CAN_BE_ANYTHING
- OR visit:
http://developers.facebook.com/tools/debug/og/object?q=http://www.example.com/?p=3568&fbrefresh=89127348912
I was having the same issue last night, and I got this solution from some website.
Facebook saves your cache thumbnail. It won't refresh even if you delete the thumnail/image from your server. But Facebook allows you to refresh by using fbrefresh
I hope this helps.
这篇关于Facebook Open Graph 不清除缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!