开发者

How to clear debug tool cache data?

It seems the facebook debug tool http://developers.facebook.com/tools/debug is using a cache.

I made an update to my site but facebook debug tool is still showing up the old data.

Is their any way to force facebook to refresh its data? It has been a few days now and it seems the cache will not expire开发者_高级运维.


  1. Go to http://developers.facebook.com/tools/debug
  2. Enter the URL following by fbrefresh=CAN_BE_ANYTHING

Examples:

  1. http://www.example.com?fbrefresh=CAN_BE_ANYTHING
  2. http://www.example.com?postid=1234&fbrefresh=CAN_BE_ANYTHING
  3. 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. I hope this helps.


The tool should update Facebook's cache for a given URL immediately, if Facebook is still returning 'stale' data, check that Facebook is actually getting the content you're expecting.

A quick way to check is to load your page from a command line tool like curl, using Facebook's user agent and see if the meta tags returned are what you were expecting.

One thing i've seen happen sometimes is people including all the correct tags on page X, except that page X has an og:url meta tag pointing to another url, Y.

Facebook will follow that tag and scrape page Y and use that metadata. I've usually seen it where page X is 'something.com/article/x' and the og:url is set to 'something.com/articles/' or 'something.com'


I've the same problem. The ?fbrefresh=CAN_BE_ANYTHING didn't do anything clear the og:image cache.

The only solution that worked for me was to rename the image and the path on the og metaga. You can do something like:

<meta property="og:image" content="http://yourdomain.com/images/socia-photo-v2.jpg">

If somebody knows a better solution will be very appreciate.

Thanks.


This hasn't been added to in a couple of years, but I've just had the same issue and found a way that immediately resolved it.

Facebook say:

Use og:image:width and og:image:height Open Graph tags Using these tags will specify the image to the crawler so that it can render it immediately without having to asynchronously.

Putting this into use should look like this:

<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />

Solved the problem straight away! Hope this helps!


Go To https://developers.facebook.com/tools/debug/

then put site URL

Now Click on button Scrape Again


I was getting the cache to show the right picture after updating my blog post, but when I went to post the link, Facebook was still showing an old picture. I didn't want to wait a day to see if it would finally change, so I did what's outlined on this page:

https://webapps.stackexchange.com/questions/18468/adding-meta-tags-to-individual-blogger-posts

In other words, something like this:

<b:if cond='data:blog.url == "http://urlofyourpost.com"'>
  <meta content='http://urlofyourimage.png' property='og:image'/>
 </b:if>

Basically, you're going to hard code an if statement into your page's HTML to get it to change the meta content for whatever you've changed for that one post. It's a messy solution, but it works.


You can try the object debugger and click on fetch new scrape information. It is mainly to debug the open graph meta data.

https://developers.facebook.com/tools/debug/og/object/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜