如何检查fb:like按钮是否已经在我自己的页面上按下? [英] How can I check if the fb:like button is already pressed on my own page?

查看:278
本文介绍了如何检查fb:like按钮是否已经在我自己的页面上按下?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网站提供免费的mp3下载,我希望他们只能用于网站的fb页面的Facebook粉丝。因此,除非用户是粉丝,否则链接将被隐藏。



通过订阅'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按钮是否已经在我自己的页面上按下?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆