0

Is a JSON response from Facebook still available? for links like my-websites.com?

I tried these answers but they no longer work: Getting the Facebook like/share count for a given URL

I found https://developers.facebook.com/docs/graph-api/reference/v10.0/link but there are no JavaScript - JSON examples.

Marian07
  • 2,303
  • 4
  • 27
  • 48
  • 1
    https://developers.facebook.com/docs/graph-api/reference/v10.0/url, `engagement` field. But the request will need an access token. – CBroe Feb 26 '21 at 07:56

1 Answers1

1

Thank you @CBroe. The documentations is here: developers.facebook.com/docs/graph-api/reference/v10.0/url

The JavaScript and JSON:

 var url = "https://graph.facebook.com/?fields=engagement&access_token=ACCESS-TOKEN&id=WEBSITE-URL"; 

 $.getJSON(url, function(json) {
   console.log(json);
 });
Marian07
  • 2,303
  • 4
  • 27
  • 48