通过订阅'edge.create'事件,但是当加载类似的框并且页面已经被喜欢时,这个事件不会被触发。
我真的不知道最好的这样做的方式是,或者是否可以在没有用户许可的情况下。 Facebook论坛上的大部分信息都是非常过时的,很多都与facebook的应用程序/标签相关,这不是我的情况。
澄清:我的脸书像我们自己的域中的按钮在我自己的代码中。
解决方案没有用户许可,这是不可能的。您需要向用户询问 user_likes 权限=nofollow>这里。
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.
解决方案This is not possible without user permission. You need to ask the user for the user_likes permission as documented here.
更多推荐
如何检查fb:like按钮是否已经在我自己的页面上按下?
发布评论