Clear cache on Facebook share button

by graham

 

Presumably to save on server load, as soon as you add a share button on your site and hit the link the description and image thumbnails are cached. 

 

This can leave you with place holder copy or out of date content and there is little or no information on the (shamefully poor) Facebook documentation. 

 

To get round this and clear the cache add a query string in the share link for example:

<a href="http://www.facebook.com/share.php?u=http://blog.grahamlicence.co.uk/?123" title="Share on Facebook">Facebook</a>

 

Comments

August 1. 2010 #

This doesn't seem to work. I read somewhere yesterday that it used to work but no longer does?

Also, Is there any difference between share.php and sharer.php?

LotteMae United Kingdom |

August 3. 2010 #

Where did you read that? I've not had any problems on recent projects.

There is no difference between share.php and sharer.php

graham United Kingdom |

December 10. 2010 #

It still worked for me. Thanks.

Martin Egypt |

Comments are closed