Getting Facebook Share, Like and Comment Counts for a Given URL with API Graph v2.6

3.8k Views Asked by At

As both Legacy REST API and Facebook Query Language (FQL) will no longer be available after 7th August I am looking for an API Graph v2.6 based on alternative to:

So far, this is my v2.6 current equivalent: https://graph.facebook.com/v2.6/?id=YOUR_URL&fields=og_object{engagement},share{share_count}&access_token=YOUR_TOKEN Nevertheless og_object{engagement} count and share_count seem to maintain some total count instead of like and share counts, respectively (see: https://developers.facebook.com/docs/graph-api/reference/v2.6/url).

Please does anybody know how to get Facebook share, like and comment counts for a given URL with API Graph v2.6? Many thanks in advance!

1

There are 1 best solutions below

5
On BEST ANSWER

Finally I reported a bug on https://developers.facebook.com Here is the response:

  • In relation to Legacy REST API and Facebook Query Language (FQL) officially they will stop working after 7th August 2016.
  • Secondly, about count and share_count, any engagement on a shared link on Facebook (including likes and comments) is considered as additional shares, as the people who like and comment on the shared link also generate a story for their action on their own timelines. To illustrate this further, I paste a quote from current Facebook Engineer:

(...) if person A shares a link (for example, http://fb.me/), this generates a story on person A's timeline. If person B comments on this story, this in turn generates a story on person B's timeline. Querying /?id= via the Graph API would then return a share_count of 2.

I hope it helps.