3

Possible Duplicate:
Retrieve Facebook Fan Names
How to list facebook users who like a page or interest

in my project i want to retrieve the list of persons who have liked facebook my page. I want to get the user details and their uids.

A user may Like the page and once again he likes the page using a duplicate profile, so to avoid this type of things i want to get the uid of the person who like the page.

Is there any Api available for this...

Is it possible to get the uid value using the batch request Api

Is there any other way to get the uids of the user, please help me friends..

Community
  • 1
  • 1
Siva K
  • 4,968
  • 14
  • 82
  • 161

2 Answers2

4

Simple use this.

https://www.facebook.com/browse/?type=page_fans&page_id=your page id

It will return up to 500 of the most recent likes. Happy coding!

DMCS
  • 31,720
  • 14
  • 71
  • 104
  • 2
    Hmm ... that may be true, but the data is pretty difficult to retrieve. This may also be a violation of Facebook's Terms of Service (?). And, of course, getting the next set of 500 will be tricky. – Jon Newman Jan 24 '12 at 05:10
  • Yes, as with working with any third party API be it Facebook or another, you should always consult your corporate attorney to ensure your code doesn't violate any TOS or Policies. – DMCS Jan 24 '12 at 10:40
  • Is there a way to get it using Graph API? – Oliver Drummond Feb 12 '14 at 18:27
  • how to get my page id? – sureshvv Oct 03 '16 at 09:42
1

The only way you can get the ID of such users is to have an app running as a page tab. When the user loads your tab, and installs (i.e. gives permissions to) your app, the signed_request that Facebook sends to your server (along with the HTTP POST request for the page) will contain a user_id.

tl;dr: you won't get any IDs unless users install an app you made.

Julio Santos
  • 3,837
  • 2
  • 26
  • 47