Clean Facebook Share API Cache Using URL Linter

When was last time you have noticed that “facebook share” button on your post picking up wrong image or title or description? In an attempt to fix it, you might have edited your post and published changes to just notice that “facebook share” button is not displaying changes you have made.

This happens because facebook like most high traffic site uses caching to reduce load on their server. So when you make a mistake it gets cached for a day (just a wild guess, it’s not documented anywhere as how much time facebook caches information from your page)

There are some stupid solutions on the web which tells you to change permalink or add some parameter to your URL. Well this flushes cache but also reset share/like count to zero.

ADVERTISEMENT

The best solution – Facebook URL Linter

Facebook provides a tool called URL Linter which can immediately flush its share cache without affecting share/like count.

This tool is actually developed for developers working on facebook platform. This tool helps developers see how a URL will look like in facebook share pop-up.

If you are a geek, apart from cleaning up cache for your post, you can use this tool to further analyze how facebook looks at your site.

Link: Facebook URL Linter

2 replies on “Clean Facebook Share API Cache Using URL Linter”

  1. Hi ,

    Your article is helpful if i have single URL, i have places facebook “F” button on my Item Detail Page, URL is changed for Every Item , means every item has its own URL , is there any way to programatically refresh the facebook sharer cache via javascript.

    Regards
    Shoaib

Comments are closed.