Alex Weinstein
Alex Weinstein

Reputation: 9891

Determine if a user is a Fan of MY page

I'd like to determine whether a user is a fan of MY facebook page, without getting any Facebook-connect permissions from them first.

Is this possible?

Upvotes: 1

Views: 1251

Answers (2)

ShawnDaGeek
ShawnDaGeek

Reputation: 4150

3 ways are available to check if user likes a or your page.

----------edit 11/19/2011

  1. Signed Request - When a user selects your Page Tab, you will receive the signed_request parameter with one additional parameter, page. This parameter contains a JSON object with an id (the page id of the current page), admin (if the user is a admin of the page), and liked (if the user has liked the page). https://developers.facebook.com/docs/appsonfacebook/pagetabs/#integrating
  2. GraphAPI with user_likes permissions. https://developers.facebook.com/docs/reference/api/user/
  3. FQL with user likes permissions. https://developers.facebook.com/docs/reference/fql/page_fan/ Belongs: You can check if a User likes a specific page by issuing an HTTP GET to /PROFILE_ID/likes/PAGE_ID. This will return, in the data array, an object with the following fields if the user is connected to the page:

Using Graph API and php What's method for checking user fan of a page in GRAPH API?

Upvotes: 1

ceejayoz
ceejayoz

Reputation: 180137

No, you must request and be granted access to a user's like data.

One caveat to this - if a user has liked your page, this will be passed to any application tab on your page that the user visits.

Upvotes: 2

Related Questions