如何检查fb:like按钮是否已经在我自己的页面上按下?

编程入门 行业动态 更新时间:2024-10-10 16:24:48
本文介绍了如何检查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按钮是否已经在我自己的页面上按下?

本文发布于:2023-11-27 14:39:09,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1638487.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:自己的   在我   按下   按钮   页面

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!