1

I have the following problem.

I have a social plugin on a particular website, and every day the thumbnail images (Image Open Graph) are changed.

Every day I need to enter the following url:

https://developers.facebook.com/tools/debug/

And insert my url, and click "Fetch new Scrape Information".

To update the facebook Open Graph Image.

Does anyone know how to automate this process?

Thiago Prado
  • 91
  • 1
  • 1
  • 8
  • Essentially, if you are sharing the same thing then the thumbnails should not change. Perhaps you should consider setting up special URL for each change in the content - perhaps inserting the date into the URL. – Lix Oct 20 '14 at 13:53

1 Answers1

6

The Solution:

Facebook - Open Graph not clearing cache

Add to your page:

$.post(
    'https://graph.facebook.com',
    {
        id: '<?php echo $url; ?>',
        scrape: true
    },
    function(response){
        console.log(response);
    }
);
Community
  • 1
  • 1
Thiago Prado
  • 91
  • 1
  • 1
  • 8