Clear Facebook Share / Like Cache

Many times you will face problems with Facebook like button. Sometimes after writing a blog post, when you preview it, the facebook like button caches the title, description and the image. As the preview post page isn’t in real, I mean to say that its just a virtual post page, Facebook caches the blog posts with wrong titles, descriptions and URL’s. This means that when you share the post after publishing it will share with the wrong titles and other data.

Facebook Share Cache

For example,

If you preview post having permalink http://www.bloggingjunction.com/12345 FaceBook will cache that page with URL, http://www.bloggingjunction.com/ and titles or descriptions of the home page or 404 page as the preview page isn’t open for public and is not real. As these details get cached by Facebook, even when you publish the post Facebook uses the cached details for share and like buttons.

How To Solve This Problem?

METHOD 1 -> Change the URL of the post while liking it or sharing it.

You can simply add a query tag after the URL.

For example,

if the post link is http://www.bloggingjunction.com/12345 simply share the blog post with the URL http://www.bloggingjunction.com/12345/?123

You can replace 123 with any other numbers. As this URL is unique Facebook will cache it again and your problem will be solved!

But beware, this may also reset the FaceBook Share and Like counts if you do this on a site wide scale i.e. change the sharing URL’s of all the posts in your blog!

METHOD 2 -> Use URL Linter Tool from Facebook.

Simply visit the URL Linter tool at Facebook and paste the URL for which you want to check the details. Though this may help you see the Facebook Like & Share details for the link, this tool doesn’t reset the blog post details always. It worked for me once and when I tried for the second time, it didn’t [After all resetting isn't the purpose of this tool ;-) ]

I hope the above methods will help you clear your Facebook Shares and Like cache! Feel free to share your views and more methods to clear facebook share cache.

Leave a Comment

{ 35 comments… read them below or add one }

Shiva @ Money Making Ideas March 10, 2011 at 1:34 PM

Maybe You could have shared the link to the URL Linter tool …Never the less thanks, this tutorial will come handy when the FB shares have been done with wrong titles

Reply

Saksham Talwar March 10, 2011 at 11:23 PM

Sorry Shiva, I just forgot it! Added the link now! :)

Reply

atish March 11, 2011 at 2:24 AM

very nice information.
thanks saksham

Reply

Saksham Talwar March 13, 2011 at 2:21 PM

You’re welcome always Atish! :)

Reply

Devesh @ Social Blogging Community March 11, 2011 at 7:33 AM

Great Tutorial and very useful post indeed. Though, i never faced this type of problem.

Anyways, Thanks for sharing this great post Saksham.

~Dev

Reply

Saksham Talwar March 13, 2011 at 2:32 PM

You’re welcome Devesh! I faced that problem and hence decided to come up with this. Anytime face this problem, surely visit this post! :)

Reply

Tech Crates March 11, 2011 at 11:48 AM

Good share….I haven’t faced this problem yet but will be helpful in future

Reply

Saksham Talwar March 13, 2011 at 2:32 PM

Yeah, bookmark this ;-)

Reply

Anne Sales March 11, 2011 at 3:34 PM

Thanks Saksham,

The URL linter tool will come in handy. One is never to old to learn! :-D

Reply

Saksham Talwar March 13, 2011 at 2:33 PM

URL Linter tool will really help a lot! The tool is just superb for it gives us more information about our likes and shares. Like your last line… :D

Reply

Swamykant March 16, 2011 at 7:31 AM

Linter is excellent tool. Thanks for share.

Reply

Saksham Talwar March 17, 2011 at 4:14 PM

Thanks for the comment instead! ;-)

Reply

vlad June 10, 2011 at 5:46 AM

This info was really useful. I could not get rid of old image for my like button. Using http://developers.facebook.com/tools/lint is fixing it.

Reply

Iain Dooley July 11, 2011 at 4:07 AM

Thanks heaps! This was just what I was after. The “linting” tool worked for me – ie. cleared the Facebook cache and told me about the extra meta data required to customise the appearance.

Reply

Saksham Talwar July 11, 2011 at 11:30 AM

That’s great Lain. :)

Reply

Armin July 24, 2011 at 10:54 PM

Hi,
Thank you so much. It solved my problem :)

Reply

Saksham Talwar July 25, 2011 at 11:13 AM

So nice to know that Armin :)

Reply

Imran August 23, 2011 at 3:49 PM

Linter is not clearing my page facebook cache

Reply

Saksham Talwar August 25, 2011 at 10:22 AM

This tool is used to clear FB share page cache i.e. the FB like or share count :)

Reply

Robert September 23, 2011 at 2:47 PM

Thanks for shareing the Linter Tool. That saved my day!

Reply

Saksham Talwar September 23, 2011 at 11:23 PM

WOW, you are welcome Robert :)

Reply

Failure October 8, 2011 at 12:39 PM

Wow you fail, none of this post works, you really should delete it….

Reply

Thefron October 17, 2011 at 6:24 AM

The linter took also worked for me just for once. For the second time after I changed the domain name, and tried to flush facebook lilke cache with linter tool didn’t worked for me. Maybe there exists a minimum span of time that facebook will flush the cache? Thank you for the tip though.

Reply

Saksham Talwar October 17, 2011 at 5:40 PM

I guess you are right. Are you a Wordpress user?

Reply

Chris October 25, 2011 at 10:42 PM

This does not seem to work anymore.

Reply

Saksham Talwar October 26, 2011 at 12:16 PM

It worked for me previously. Haven’t got a chance to test it again as I took some precautionary methods :D Ex: I installed FB Like thumbnail plugin for WP which solved most of the problems.

Reply

john November 22, 2011 at 3:16 PM

I have too many urls’s to do this manually. Do you know of any way to do it dynamically for the whole website?

Reply

Saksham Talwar November 22, 2011 at 10:23 PM

Sorry, but no. You can hire some one from Fiverr I guess to get it done for cheap :)

Reply

APeterson November 29, 2011 at 10:17 AM

The Facebook debugger (linter tool) does not clear the cache for me. I’ve tried it many times over several days and my test ‘likes’ continue to display the old information. The debugger shows the correct information for things like the updated og:title, og:image and og:description. However, that updated information never shows correctly on my Facebook wall (when I’m testing). These are new ‘like’ buttons, so I’m pretty sure I’m not running into Facebook’s limit when they lock the information down and don’t let you change it. Any other tips?

Reply

Saksham Talwar November 30, 2011 at 11:24 PM

Peterson, some time back Facebook has stopped users from updating a page’s details (description, image, etc.) SO by default FB now uses the default meta tags of that page while sharing if you like a page. This means that you cannot change a page’s image, description, etc when you like it.

Reply

APeterson December 2, 2011 at 10:16 AM

Thanks for your reply. I knew something was going on. The behavior that I’m seeing is that Facebook does pick up the og (open graph) tags for a new like item you create. However, it does not update them no matter what changes you make or how many times you enter the page URL in the Facebook Debugger. Get the tags right the first time and all is good. Make a mistake or want to improve something and you’re out of luck — you can’t do it. I wish I could get a definitive answer from someone at Facebook. Thanks again.

Reply

Saksham Talwar December 3, 2011 at 12:04 PM

Peterson, Really! FB should provide webmasters some kind of editing controls after all mistakes do happen! FB support is not that great, they take ages to answer and many times they don’t have an answer!

Reply

Jeroen B December 23, 2011 at 2:45 PM

Thx a million, worked like a charm for me!

Reply

Jan Malloch January 6, 2012 at 6:26 AM

Thanks so much for this valuable advice – I thought I was going to be “stuck” with this problem!!

Reply

Mr. Jones January 17, 2012 at 9:51 AM

Thank you thank you thank you! After hours of looking, the URL Linter tool helped and fixed my Like button problem.

Reply