问题
I would like to see of visitor of my website is already fan of my fanpage.
So if somebody visits my website,i would like to ask him to visit my fanpage only, if he is not fan already.I dont want to ask for permission. Just check, if he likes the fanpage or not. Is there possibility to do this? I am not experienced in this Facebook API, this is why i ask for an idea for doing this
回答1:
It can be done using FQL by querying page_fan table, you have to get user_likes
permission before doing this...
回答2:
It is now against Facebook's policies to gate an app or content within an app based on if someone has liked your page.
Use of the user_likes
permission will not be approved for use by Facebook via Login Review if you're using it for the purpose of like gating.
In addition, FQL is now deprecated and should no longer be used for new apps.
See the announcement here: https://developers.facebook.com/blog/post/2014/08/07/Graph-API-v2.1/
来源:https://stackoverflow.com/questions/7771442/facebook-fan-page-like-check