Clear Facebook Cache - Post and Share --developers tip

By jason on 08/05/2013

Sharing facebook content seems easy, and for the most part it is. If you're developing a web asset that is going to be shared on facebook, you want to take advantage of the open graph - and insert facebook open graph meta tags on your page, so you can specify the proper title, thumbnail, url, description, etc: http://davidwalsh.name/facebook-meta-tags - which is used when sharing url via facebook.

When you're developing something, and try sharing it on facebook..facebook caches the web page and preview..so, you don't see your latest work. There are some workarounds for this..such as appending a url parameter: www.mysite.com/?v=1 This is different to facebook than: www.mysite.com/ So, you can see the latest work by updating the ?v=X url parameter.

Even better, is that you can post you're url to the facebook debug tool, and facebook will respect your work.

https://developers.facebook.com/tools/debug/og/object - this will save you a lot of trouble..if you're like me.

Whew..saved me some grief. Hope it will help you, too.

clear cache