问题
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?
回答1:
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.
回答2:
3 ways are available to check if user likes a or your page.
----------edit 11/19/2011
- 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
- GraphAPI with user_likes permissions. https://developers.facebook.com/docs/reference/api/user/
- 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?
来源:https://stackoverflow.com/questions/8045119/determine-if-a-user-is-a-fan-of-my-page