How to clear Facebook Share’s Cache

Facebook share is good, simple, lets us share almost everything on web in seconds. But Facebook caches already shared urls/pages for better performance. This causes issues at time when we update the title, picture being shared or the description of the page because Facebook still shows the older version of the page.

For modifying which image, title and description FB chooses, read this

I will discuss three simple ways to force facebook to go and fetch the latest stuff from the page being shared.

Method 1 :

Facebook treats each url as unique and caches the page based on that url, so if you want to share the latest url the simplest solution is to add a query string with the url being shared. In simple words just add ?v=1 at the end of the url. Any number can be used in place of 1,

This method is fairly simple but it doesn’t retain the share count for this page, as it treats this page as a different url hence the count for this url will be restarted from 0. Plus if someone else shares the original url without the querystring the information will still be the old one.

Method 2:

Using url shortner services like shorten your url form and then use the new url for Facebook share. This too is a simple and quite popular method but has the same issues as the first one.

Method 3:

Facebook has a tool called Debugger (formerly known as URL Linter). This tool gives us an idea about how a url will be shared on Facebook, what content, which image will be fetched. Further details about this tool can be found here.

We can use this tool for any url and it fetches the latest title, description, excerpt and other stuff that will be shown while sharing the link. If you use an already shared URL with this tool then Facebook fetches the latest content, and also updates it cache with the latest content.

With this methos the url remains the same hence the share count will persist and the content will be updated. Someone else sharing the url will also see the latest content now. So this method is of course the best.

The Debugger tool can be accessed here.

Found this post helpful? Want to return the favor? Use the button below :)

Published by Umair Jabbar

Umair Jabbar is an enthusiast, a Software Engineer / Web Developer who wants web to be simpler for everyone.

Join the Conversation


      1. Does the Method#1 really work, I tried adding a query string and it does not make any difference, It still displays the old Image.
        One cannot always use linter as we have a dynamic image to be displayed based on the query string parameter
        My requirement is that the page is always the same but the content and the images on the page change based on the parameter we pass in the URL, and the image we pass in the Og:image meta tag is also dynamic based on this. But facebook always displays the old image associated withthe page. Is there a way we could make a call to the linter url every time we access the page. 

        1. It worked for me. I kept trying to use the same link even as I changed my HTML settings, and yet Facebook still kept showing the URL without a description/link. I added the parameter and it no longer kept the share cache.

    1. Dear Umairj ,
      What’s the reason, that there is’t title and image in my wall when I like a page?


  1. Hi Umair,

    What would be the reason, that after an update, the linter shows the correct title, description and the image but the share preview still is wrong (like before the update – just the title, but no description and image).



  2. Hello – am having trouble also and I have tried method three. I go to URL Linter and enter my URL but then when i attempt to post to FB, i get the same results. The thumbnails won’t load and since they won;t load I can’t choose the thumbnail i want to highlight.

    Any help is greatly appreciated.

  3. hi umairj,

    i’ve been using the linter, too.. But i have this page whose content changes on a daily basis. it’s kinda tedious if we keep on going to the url linter everytime right? any idea how to do this? thanks! :)

    1. Hi,
      As I have explained above that Facebook caches pages and their contents, hence I dont see any simple solution to delete facebook’s cache automatically. You will have to do it manually or else have a general description and image for such a page.
      If you dont know how to customize which picture and text facebook picks from your page then this post will be of help

  4. hi umairj
    I am having the same problem, tried all 3 possible solutions that you mentioned, also, lint tool shows the correct thumbnail where as sharing a link shows old thumbnail. Not sure what else methods to try.

    Are there any other methods?

  5. hi,
    I tried with limt and it’s fine. But sometime all submited metadata has been lost and I have to try it again. Any solution for keep the cache, Umairj?
    Many thanks.

    1. If the cache is lost then Facebook will hit your page again and take the latest data. Whats the issue in it ?

  6. Dear Umairj,
    I just build a facebook apps that have authorization in

    private const string Required_Permissions = “read_stream,publish_stream”;
    [FacebookAuthorization(IsFbml = false, RequiredPermissions = Required_Permissions)]

    My problem is can’t use limt to make facebook cache my url metadata.

    I try to disable authorization:
    //private const string Required_Permissions = “read_stream,publish_stream”;
    //[FacebookAuthorization(IsFbml = false, RequiredPermissions = Required_Permissions)]

    Then I can use limt to cache my metadata, it work fine!

    After facebook cache my url metadata, I enable authorization and don’t run limt anymore. But my metadata has been lost after 1 or 2 day.

    How can I get facebook cache my url metadata with facebook authorization? Or how can I get facebook cache my metadata without auto update?

    Thank guy,

  7. any idea about when and how facebook auto-update my url metadata cache, Umairj? :)
    (I want to avoid updating from fb)

  8. Thanks. Oddly, I had tried those once before and couldn’t get them to work. Must have been something leftover in the code. Will try again!

  9. I have been having so many issues with this lately. My links shared just fine then about a month ago, everything changed. I’ve been using the linter for about 3 weeks and it’s worked but now it no longer works either. Im so frustrated.

  10. Hello,i wrote something stupid on a facebook page,and whenever i google my name,the wallpost is there,how do i get it off? i tried lots of stufff

  11. thanks a lot!
    I was fighting with tomatocart eshop to generate proper meta tags to set right picture for products like button posts on facebook and result from testing were really bad links to picture. This article helps me to get everything in place. Thanks again, great job!

  12. Umair, can you help me please with this problem. Recently I have integrated three sites of mine with facebook. Two of them stuck together somehow in facebook: and . When I Like anything on the fight site it is OK. When I Like anything on the turbo site it is OK _except_ for the main page. To put this in different words: if I Like the main page of turbo site, it is shown at facebook as I Liked the fight site! I have already tried at lint both of them and they seem to be OK for the meta tags. However if you check the Like-count at the bottom of the lint page — they are the same for both sites! (I removed the like button from the turbo site but I left the opengraph tags so that you can lint pages at this site).

    This seems to be a kind of a cache problem – but lint does not solve it for me.

  13. I thought Lint has an instant effect.
    For the record: this was a delay of more than 24hrs… :-)

  14. Dear Omar… Thanks a lot for the info, but it doesnt work for my URL. FB and URL Linter still show the old data (From my old provider), while it should show my new website description…

    Mu URL is

    Thanks a lot

  15. Greetings umair Jabbar, I am getting troubles sharing a url, I have used your methods but have not worked yet.
    I am building sharebutton dinamically:
    sb.Append(“”);sb.Append(“”);sb.Append(“”);sb.Append(“”);sb.Append(” “);

    It always show the same image, title and description, could you indicate what I am doing wrong.

    thanks a lot.


  16. I’m getting an old blavatar when I post a link to my WordPress blog on Facebook – latest post

    Whenever I post a link on Facebook it’s showing an old image – one which was online for a few minutes before i noticed it said “A Folk Song A Day” not “A Folk Song a Week”.

    Thanks for helpful advice above, at least I now realise my problem is with Facebook, not with WordPress or my own cache. Have gone to the URL Linter and the thumbnail displayed is the wrong one, but if you click on it you get the full-size correct image. Indeed this bit is OK: “Data SourceExtracted 1
    values from :” – that URL is correct. Do I just have to wait for the Facebook cache to catch up, or can I force it in any way?



  17. Great tool! Worked perfect for me. I needed this, but how come there’s no “Like” button. I want to “Like” it because I’m sure others have been searching for this tool as well.

    1. Never mind. I was looking for the button at the actually “debugger” page, but this page I’m commenting on has a “like” button. Used it …

      1. I am glad it was helpful for you. I hope others find this fix easily, I have tried google and it appears on the first page which is good enough. People just need to search for the right thing :)

        1. Does the Method#1 really work, I tried adding a query string and it does not make any difference, It still displays the old Image.One cannot always use linter as we have a dynamic image to be displayed based on the query string parameterMy requirement is that the page is always the same but the content and the images on the page change based on the parameter we pass in the URL, and the image we pass in the Og:image meta tag is also dynamic based on this. But facebook always displays the old image associated withthe page. Is there a way we could make a call to the linter url every time we access the page. 

  18. Thanks for posting this–saved me a bit of hair-pulling :) Is there a way to clear multiple pages at once, or even clear all cache found one site? Or would you know if/when FB expires the data in their cache and pulls the new one? For many pages (i.e. many photo galleries) it would be difficult to input all pages into the linter to force a clear :)


    1. Hi @3e1d0eadb4220f5ef48fc009e2976f70:disqus
      There is not such way in my knowledge which would help delete all the cached data for a site, and facebook’s cache refresh time is also not known.

      1. Alright, thanks! I did run a quick check on analytics, and it seemed the FB bot/UA mentioned on the docs hit my pages once in April and once just this month :p Although this may not be indicative in any way. But thanks for responding!

  19. First, thanks for your great write-up. I appreciate the detailed information.

    Second, unfortunately, none of the solutions work for me.

    I’m adding the ‘like’ button using the iframe solution with additional open graph tags (og:title, og:description, og:image). I’m testing how the ‘like’ post looks before I finalize the and lock down the code. The first post looks as expected — the image, title and description match the tags in my code. However, when I make corrections or updates, the changes display fine in the Facebook debugger, but they never appear in the post on my wall (where I’m testing my work). I’ve tried multiple times over several days.
    Since these are new ‘like’ buttons, I can’t imagine I’m running into the 50-‘like’ limit which locks down some of the og meta tags.
    Help. I’m totally stuck. I haven’t found any way to see the updated og tags show up on my wall. Is there something else I’m missing or that will prevent updated og tags from displaying?

    1. Did you ever manage to figure it out? I currently have the same problem. Any help would be appreciated.

  20. So glad I found this post. The Linter worked for me. I wanted to announce my new blog site, and Facebook kept displaying the old Title and I couldn’t figure out how to get it to update to the new one. Most excellent advice. Thanks again!

  21. Hi,

    I need some method to clear fb cache programmatically.
    I’ve created PHP script which with cURL tool try to periodically clear cache.

    It’s something like this (but that don’t work for me):
                    // because the url for girl of the day is always the same, but the picture of the girl isn’t, fb cashe the picture by the url    // because of that every day through its ‘share’ and ‘like’ API it returns the same picture (old one)    // so it needs to pass the url to the fb tools to clear cashe, and it will be done every time the new girl of the day is stored 

                    $url = “”; $useragent = “Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.10.229 Version/11.60”; if ( $ch = curl_init( $url ) ) { curl_setopt( $ch , CURLOPT_HEADER , 0 ); curl_setopt( $ch , CURLOPT_RETURNTRANSFER , true ); curl_setopt( $ch , CURLOPT_USERAGENT , $useragent ); $str_response = curl_exec( $ch ); if( curl_errno( $ch ) != 0 ) { $message = ‘Girl of the day – cURL exec error: ‘ . $ch; error_log( $message ); } //echo $str_response; curl_close( $ch ); } else { $message = ‘Girl of the day – cURL init with url: ‘ . $url . ‘ failed’; error_log( $message ); }

  22. Thank you, thank you, thank you!!! My site was continuously coming up as private, even though I had changed it to public. Method # 3 worked perfect :) Thanks again!!

  23. Thanks, the cache issue was driving me nuts!  The debugger tool also identified some issues in OG metadata which was creating other problems.

  24. Thank you for this post. I had a question for you, so if I don’t use the og:image tag it finds the images with in the article, but when I use the og:image tag it only uses that and won’t have the images from the story. How can I show both the og:image and the images from the article? Thank you in advance.

  25. Thanks so much. I’ve been waiting 24 hours to post a link to my blog on FB after publishing the wrong image thumbnail. I was about to pull my hair out. The “?v=1” method worked great for me!

  26. #3 … clearing FB cache worked a couple of weeks ago but will not work. Didn’t understand #1 and tried it…. didn’t work.

  27. What you’ve described here is exactly what I need to do. I update the same URL on my blog every week, and want to share that updated information on my FB timeline. However I can’t get any of these methods to work. I’ve tried all three. Any further thoughts or suggestions?

  28. Method 1 and 2 don’t work anymore, because facebook caches from the canonical url. As for method 3, I used the linter and it displays exactly what I need, however facebook uses the older different thumbnail to display on the timeline and the new one on my wall. So I see the updated thumb and everyone else sees the old one :( I guess I’ll have to reupload my video :(

  29. I have no idea how to do any of this or where to even start. My wordpress blog posts to my facebook page and vice versa. They are pinging the same post back and forth. I have no clue how to find the URL or cache (method 1 and 2) or what to type in for Method 3. This is way over my pay grade.

    1. Oh sorry it does work only for link sharing, but does not work on fb-like-plugin like button share :)

  30. Method 1 FINALLY solved my problem! 4 Developers and almost 9 hours later… thank you very much! :)

  31. METHOD 1- added tags to my description meta tag – AND YES!!!!!!!!!!!!!!! PROBLEM SOLVED. THANK YOU THANK YOU THANK YOU!!! I vary the V= each time I make an update; I just want my facebook ads to show up right, not worried about other’s getting wrong data, that’s not a problem for me. THIS IS AWESOME!!!

  32. A GREAT variation on #1 … I took my index.html and copied it to index1.html – then put index1.html in my facebook link. It immediately picked up the new look, I also don’t have a funny looking link with ?v=X on it, the link is valid, and I can used index2.html if/when necessary. If anyone goes to my real index.html link it will display correctly as it is only these caching websites that have problems; it’s working great!! So my link is – thanks SO MUCH for your v= suggestion it put right on a good track.

  33. Sorry for all the posts … another thing, facebook also adds a little icon to the graphic as I’m creating my post with the link; this icon lets me cycle through the JPGs on my site so I can pick the one I want; I created one that is 250×250 pixels which is perfect for facebook so I choose that one.

  34. Why method #1 is INCREDIBLE – I have Amazon ads; Amazon is REALLY bad about updating description internally on items that have variants (different colors, sizes, etc.) so you can put a link on facebook to your amazon ad and very easily see old Amazon wording – it is a problem of both companies!! I put the ?v=X on my Amazon link on facebook and it solved my issues. AWESOME!!!

  35. Thanks a lot! Method #3 rescues posts you need to reedit once you hit publish on a Facebook-connected WordPress site. Works like a charm!

  36. hi, I have implemented sharing content on my site using FB Share Dialog, but it is not incremrnting the share counts.

  37. hey, i’m having a problem with this. the debugger recognize the changes made, shows me the changes that will be included when shared, but when i post in facebook it still shows the old information and picture. wtf? do i have to wait to refresh for itself? help will be appreciated.

  38. THANKYOU!!!!! debugger is EXACTLY WHAT I NEEDED! All these blog posts month after month I’ve cursed Fb’s insistence on using a feature image that often no longer even exists in my database. You saved me from insanity!

  39. Thank you! I wasn’t sure how to fix this problem so I had just been putting up with out-dated titles and descriptions. Not anymore!

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.