I’ve found some discrepancies in the graph api and was wondering if anybody has been able to work around them.
https://graph.facebook.com/?id=http://www.imdb.com/title/tt0117500/ outputs a “likes” number together with all of the open graph info provided by imdb, associated to its fb:app_id.
https://graph.facebook.com/?id=http://www.google.com however, outputs the “shares” number, as google doesn’t provide an fb:app_id or fb:admins.
My problem is that I need the “shares” number for the first URL, as it corresponds with the number exposed in its like button (likes + comments, etc.)
Is there any way to reliably get this “shares” number for any URL?
This API is no longer available. The answer below is no longer valid.
I could get stats of a page (say http://techcrunch.com) with just a GET request to API. Just place this GET request
http://api.facebook.com/restserver.php?method=links.getStats&urls=[YOUR_URL]and get the stats.like http://api.facebook.com/restserver.php?method=links.getStats&urls=http://techcrunch.com/
returns
Hope this helps.
Also,
If you want that response as a JSON, just append
&format=jsonto request URL – Dexter(from the comment. Thanks Dexter!)