5

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
Dusty
  • 2,159
  • 3
  • 23
  • 26

2 Answers2

2

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/

Shekhar_Pro
  • 18,056
  • 9
  • 55
  • 79
  • 1
    "Your statement is not indexable. The WHERE clause must contain an indexable column. Such columns are marked with * in the tables linked from http://developers.facebook.com/docs/reference/fql ", "type": "NoIndexFunctionException", – niraj.nijju Mar 29 '13 at 08:37
1

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

Elliot Chong
  • 1,410
  • 1
  • 9
  • 10