How can I check if the fb:like button is already pressed on my own page?

这一生的挚爱 提交于 2019-12-11 16:16:43

问题


I have a website serving free mp3-downloads and I would like them to be only available for facebook fans of the fb-page of the website. The links are thus hidden unless the user is a fan.

I have reached partial functionality by subscribing to the 'edge.create' event, but this event is not fired when the like box is loaded and the page has already been liked.

I don't really know what the best way to do this is, or whether it's possible at all without user permission. Most information on facebook forums is horribly outdated and a lot of it is related to on-facebook facebook apps/tabs, which is not my case.

To clarify: my facebook like button is on my own domain, in my own code.


回答1:


This is not possible without user permission. You need to ask the user for the user_likes permission as documented here.



来源:https://stackoverflow.com/questions/6632179/how-can-i-check-if-the-fblike-button-is-already-pressed-on-my-own-page

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