views:

114

answers:

2

Hi,

I'd like to get a list of users who like a certain page or a fan of it.

The FB API documentation states that you can only get the count of the fans of a certain page using the social graph, but not a list of the fans.

A discussion here http://stackoverflow.com/questions/2001281/retrieve-facebook-fan-names suggests that one could use an FQL query like 'SELECT user_id FROM like WHERE object_id="YOUR PAGE ID"' to get the number of people who liked the page, but for the same page, it gives an empty response "{}".

So I was wondering if anyone has an idea if this can be done.

Thanks!

A: 

You can only get the fans of pages that you are an administrator for. So you have to provide an access token with your request associated with an admin account of the page you are trying to get the fans.

Nathan Totten
I see. That makes sense. Thanks for the answer!
pesho
A: 

Did this solution work for you? I have the same problem. I'm trying to get the fans of an external facebook page(setup using the open graph api). But it returns an empty response. I tried passing my access token both in the request URL, as well as in the CURL request, but still no luck.

Were you able to solve this with FQL?

No, I think it is as Nathan said that you have to be the administrator of the page to be able to get its fans. I'm getting the same results as you, i.e., an empty set, both using the graph api and FQL.
pesho
ok, but i am the admin! I'm trying to pass in the access token for my "application" but it is still returning empty results..

related questions