0

I have developed a website that contain feeds. When one new feed added, the facebook share working as correctly. The old datas are saved on facebook cache. When I edited ther is no change in share data.

After scraping the page in https://developers.facebook.com/tools/debug/sharing/ it will clear the old data and place the new edited data on facebook share page.

Any working code in PHP that automatically rescrap the share datas????

My website is http://www.foxdray.com/feeds/ .

I want to share the page www.foxdray.com/feeds/index/posts/?genre=317 , or else any new feed, after editing.

Thank you all

1 Answers1

0

You can trigger a re-scrape via a simple POST request, see https://developers.facebook.com/docs/sharing/opengraph/using-objects#update

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

(How to make a POST request with PHP is something easy enough to figure out, f.e. How do I send a POST request with PHP? If you are already using the PHP SDK in your project by any chance, that has methods to directly make POST requests to the API as well.)

CBroe
  • 91,630
  • 14
  • 92
  • 150
  • https://www.facebook.com/sharer.php?u=http://www.foxdray.com/feeds/index/posts/?genre=322&scrape=true Like this????? – Thahaneen Ahamed Jul 24 '17 at 09:16
  • No, an _API_ request - those are made against `https://graph.facebook.com` https://developers.facebook.com/docs/graph-api/using-graph-api/ – CBroe Jul 24 '17 at 10:00