Determine if a user is a Fan of MY page

核能气质少年 提交于 2019-12-08 04:28:19

问题


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

  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?



来源:https://stackoverflow.com/questions/8045119/determine-if-a-user-is-a-fan-of-my-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!