How to clear facebook share image cache for entire site - facebook

I have cleared facebook cache to change "share image" by using
https://developers.facebook.com/tools/debug for specific URL.
I want to clear cache and change "share image" for entire site. There are hundreds of URL, so it is tough to clear cache for each url by entering here
https://developers.facebook.com/tools/debug
Also I use http://www.webcoachbd.com?fbrefresh=5465468464 this in above debugger. Yet not appearing correct image when share in facebook for many URL in this site (webcoachbd.com).
somebody help plz.

Related

Facebook sharing website issue with thumbnail

When I share a page from my website, I have ANY thumbnail attached to my post on Facebook. But, if I preview my page with the Facebook debug tool, Facebook is showing me the thumbnail.
You can try it here developers.facebook.com/tools/debug/og/object/
In the input URL put this page: http://www.team-exodia.fr/forum/threads/ouverture-de-la-section-garrys-mod-darkrp.6641/.
Now you see the thumbnail if the page is shared.
But now if you share this you didn't see the image preview on Facebook.
(https://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.team-exodia.fr%2Fforum%2Fthreads%2Fouverture-de-la-section-garrys-mod-darkrp.6641%2F)
This issue is all of my page on my forum. I don't understand.
Does anyone know what's happening here? Thanks.
It works fine for me, although you do not have any Open Graph tags on your website. You should ALWAYS include them, the debugger tells you about that too. Here´s a nice list of the needed ones: http://ogp.me/
Dont´t forget to refresh the URL(s) in the debugger after changing it, the Facebook cache can be tricky.

Share image does not change in facebook

In my rails application i put social sharing icon of FB.
When i click on FB icon then popup open. Title and desc is display correct which i want but image is not display proper. Popup take a different image from project which i not assigned.
I tried lots of time to change image but not success. I also remove image from project still its display in popup.
What is actual problem i can not found. Fb cache issue or something different.
Any one have a idea then please share it.
Thanks
Once a url has been shared, Facebook's crawler, which has a user agent of facebookexternalhit/1.1 (+https://www.facebook.com/externalhit_uatext.php), will access your page and cache the meta information. To force Facebook servers to clear the cache, use the Facebook Url Debugger / Linter Tool that they launched in June 2010 to refresh the cache and troubleshoot any meta tag issues on your page.
More detail: click
Hope this help

How to clear facebook sharer cache?

I m integrating facebook sharer option for my website. Everything is going smoothly but facebook is taking contents to be shared somewhere from its cache. Its is sharing previous contents, my changes are not reflecting. How can i tell facebook to read share content from my meta data instead of is caches?
Put it in the debugger: https://developers.facebook.com/tools/debug/
After putting in your URL(s), click "Fetch new scrape information" to refresh the Open Graph tags.

AddThis: og:image not properly used until second attempt to share

URL: http://comicskingdom.com/arctic-circle/2014-05-27
Click the facebook share button once. It ignores the og:image I have set. Close the dialog, click share again, and it will use the image properly.
Debugger at https://developers.facebook.com/tools/debug/ shows the correct og:image, but on the first load it does not include that image in the list of available thumbnails.
If you run the test again, it will correctly use the og:image as the sharing thumbnail.
I don't know the first question to ask about this problem - could facebook be caching something? The og:image is URL shortened via bit.ly, if that could matter.
Thanks in advance to anyone who has some insight into this!

Share Cache Timeout

How long is the timeout for facebook share cache. I edited all of my pages and changes must be reflected.
If timeout is unlimited, i have to debug all pages via curl etc.
Thanks.
You can manually "clear" the facebook cache by using the Debugger.
Just go there, enter the url you changed and click "debug", that will cause the facebook bot to request the data from your servers even if it was already fetched and cached, and the new data will replace the old.
Edit
800k of pages is a lot, no doubt.
According to the Like Button doc:
Facebook scrapes your page every 24 hours to ensure the properties are
up to date. The page is also scraped when an admin for the Open Graph
page clicks the Like button and when the URL is entered into the
Facebook URL Linter. Facebook observes cache headers on your URLs - it
will look at "Expires" and "Cache-Control" in order of preference.
However, even if you specify a longer time, Facebook will scrape your
page every 24 hours.
(The URL Linter is the Debugger)
But from my experience it's not always the case, I haven't found any pattern to it, but I came across data that was months old and the cache was not clear until i manually used the debugger to extract the new data.
If you still want to manually refresh the data fb has, you can probably write a script that posts the url to the same form action in the Debugger page, I don't think they are using a csrf protection.
In that way you can automate this action for all your pages, it might take a while, but nothing too serious.
I was using window.open('https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(url_to_share)) to make a share popup and no matter what I did, the cached share was not clearing until I did the following:
Put the URL you're trying to share into the Facebook URL Linter.
Scroll down to the "Share Preview"
Click "See this in the share dialog"
Copy the URL from that page
Put that URL in your window.open([put the url here]) popup and voila!