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:
- https://api.facebook.com/method/links.getStats?urls=http://www.imdb.com/title/tt2015381/&format=json
- https://graph.facebook.com/fql?q=SELECT url, normalized_url, share_count, like_count, comment_count, total_count,commentsbox_count, comments_fbid, click_count FROM link_stat WHERE url='http://www.imdb.com/title/tt2015381/'
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!
Finally I reported a bug on https://developers.facebook.com Here is the response:
count
andshare_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:I hope it helps.