Facebook Fan page like check

守給你的承諾、 提交于 2019-12-23 04:52:47

问题


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

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