0

Is there something out of the box to clear cache for Facebook share? I have to clear the browser cache for the share dialog to take the latest updated content.

Is there something in Sitecore that does this for me to make the facebook share easier?

5

There is nothing OOTB built into Sitecore for this. To clear the Facebook cache you have 2 options:

Manual Cache Clear

You can manually clear the cache by going to the Facebook Debug Tool and enter the URL you want it to scrape. This forces Facebook to clear the cache and get the site data again.

Clear Via API

You can use the graph API from Facebook.

The API endpoint to clear it is:

POST /?id={object-instance-id or object-url}&scrape=true

The response from this endpoint will be a JSON object that contains all the information about the object that was scraped (the same data returned when the Object ID is read from the Graph API).

You could create a ribbon bar button to call this API for the currently selected item in the content editor.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.