How to clear debug tool cache data?

2019-01-21 11:23发布

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.

7条回答
来,给爷笑一个
2楼-- · 2019-01-21 11:30

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

then put site URL

Now Click on button Scrape Again

查看更多
beautiful°
3楼-- · 2019-01-21 11:32
  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.

查看更多
我只想做你的唯一
4楼-- · 2019-01-21 11:32

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.

查看更多
地球回转人心会变
5楼-- · 2019-01-21 11:35

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'

查看更多
We Are One
6楼-- · 2019-01-21 11:35

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.

查看更多
你好瞎i
7楼-- · 2019-01-21 11:40

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/

查看更多
登录 后发表回答