Dusty
Dusty

Reputation: 2189

Using the Facebook API to get users who have "liked" you

How do I use the facebook api to get the list of users who have liked my business facebook page?

I understand I can get users who have liked certain objects (ex: photos) by doing this:

https://graph.facebook.com/<obj id here>/likes

Upvotes: 5

Views: 4352

Answers (2)

Elliot Chong
Elliot Chong

Reputation: 1460

This functionality isn't possible for Page objects with the Graph API or FQL, please see: How to list facebook users who like a page or interest

Upvotes: 1

Shekhar_Pro
Shekhar_Pro

Reputation: 18430

You can make an FQL Query to like table.

Like this:

SELECT user_id FROM like WHERE object_id="your_page_id"

See this Documentation For like Table ( http://developers.facebook.com/docs/reference/fql/like/ )

If you want specifically for Page Likes (which are called page Fans) then page_fan Table can be queried.

SELECT uid FROM page_fan WHERE page_id = your_page_id

See this Documentation For page_fan Table http://developers.facebook.com/docs/reference/fql/page_fan/

Upvotes: 2

Related Questions