Facebook Open Graph Image

1

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

Every day I need to enter the URL: link

And enter my URL, and click on "Fetch new Scrape Information".

So that once a user of the system wants to share the website on Facebook the image is updated so that Facebook updates the Open Graph Image.

How to automate this process?

    
asked by anonymous 20.10.2014 / 15:54

1 answer

0

The solution was to put the following code snippet on the page:

$.post(
    'https://graph.facebook.com',
    {
        id: 'http://www.minhaurl.com.br',
        scrape: true
    },
    function(response){
        console.log(response);
    }
);

As soon as a user enters the page, the image automatically refreshes.

Thank you.

    
21.10.2014 / 14:03