How to update facebook open graph image

后端 未结 4 2097
轻奢々
轻奢々 2020-12-23 17:16

Say if you have set the facebook image for your webpage via the meta tag of the open graph protocol like this:

4条回答
  •  长情又很酷
    2020-12-23 17:33

    this is the most consistent answer I've found to this problem: https://stackoverflow.com/a/21468084/339698

    If you're too lazy to go to that link, you can POST an ajax request with the url you are trying to clear:

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

提交回复
热议问题