Say if you have set the facebook image for your webpage via the meta tag of the open graph protocol like this:
<meta property="og:image" content="http://ia.media-imdb.com/rock.jpg"/>
If you want to replace/update the image with another image of the same name rock.jpg
, how do you get facebook to update your image accordingly with the new image when you share the page? Forcing facebook to fetch your page's data with this link http://developers.facebook.com/tools/debug won't update the image.
this is the most consistent answer I've found to this problem: https://stackoverflow.com/a/21468084/339698
If you're too lazy to go to that link, you can POST
an ajax request with the url you are trying to clear:
$.post(
'https://graph.facebook.com',
{
id: 'http://www.site.com/my/share/url/',
scrape: true
},
function(response){
console.log(response);
}
);