Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I force Facebook to purge its cache and use newer meta description of a shared webpage?

Facebook fetches the title and webpage description from the HTML header of the webpage whenever people share a link on Facebook. I realized that [I believe for performance purposes], Facebook caches and reuses the webpage title and description if more people share the same link over and over again. What if the webpage has a breaking news or something that is dynamically changes within a short period of time. Even worse, what if the page had wrong content and the webmaster made changes to it?

How can I force Facebook to flush its cache and update it with new content on the website?

like image 465
Semere Taézaz Sium Avatar asked Jan 26 '12 22:01

Semere Taézaz Sium


People also ask

How do you force Facebook to clear the cache?

On the website, go to Account > Settings & Privacy > Activity Log > Search History and click Clear Searches in the upper-right corner.

How do you update Facebook cache?

On Facebook, refreshing the cache is rather simple. Go to this page, enter the URL of your page and then click “Debug”. The cache is refreshed and now you can share your link with the up-to-date information.

How often does Facebook clear its cache?

This is because social media utilizes a cache system (typically refreshing every 30 days) that stores a site's metadata to speed up future requests. The data stored in a cache can result from an earlier computation or a copy of data stored elsewhere, which means what's stored in the cache often isn't up to date.


1 Answers

The best way to do it is by using the Facebook debugger: http://developers.facebook.com/tools/debug Insert your url, let the debugger scrape your page and the cache is cleared.

UPDATE:

As DMCS pointed out "some things cannot be updated after X number of likes". Here is the info in more detail taken from the Facebook documentation:

Note: og:title and og:type are only editable initially - after your page receives 50 likes the title becomes fixed, and after your page receives 10,000 likes the type becomes fixed. These properties are fixed to avoid surprising users who have liked the page already. Changing the title or type tags after these limits are reached does nothing, your page retains the original title and type.

like image 111
borisdiakur Avatar answered Oct 02 '22 09:10

borisdiakur