Forum Moderators: open

Message Too Old, No Replies

Get the number of likes via Facebook API

         

Mister_L

11:15 am on May 12, 2015 (gmt 0)

10+ Year Member



Hi,

I'm using Facebook's graph API to get the number of likes for several pages on my website. I'm sending a GET request like so:

http://graph.facebook.com/?ids=http://example.com/1


For some pages, the number of returned likes is correct (they are called "shares" for some reason, why?), but for other pages the number is incorrect. Is that a Facebook bug? Is there another way to get the number of likes? I tried with FQL, but had no luck there, and besides I read that it's deprecated.

Thanks.

nelk

2:29 am on Jun 2, 2015 (gmt 0)

10+ Year Member



Shares is actually a different stat. Did you make an app for your page? ids should reference the page Id. Check out:
[graph.facebook.com...]
or
[graph.facebook.com...]