gpt4 book ai didi

facebook - 检测用户是否单击 XFBML 页面中的 'Like' 按钮的事件处理

转载 作者:行者123 更新时间:2023-11-30 05:17:33 27 4
gpt4 key购买 nike

我有一个 Facebook 连接应用程序/ Canvas IFrame 应用程序,它有一个粉丝页面的 Like 控件。

我想检测用户何时单击 Like 按钮以显示附加信息(折扣券代码)。

我正在使用最新的 Javascript API但是events可以处理的似乎不包括对社交小部件控件的检测。 Like Plugin 的文档不显示任何事件。

但我知道这绝对有可能,因为如果我在一个页面上有两个 Like 按钮,无论我喜欢还是不喜欢它,它们都会立即相互更新。


编辑:specifically allowed要求某人成为促销的粉丝:

4.2 In the rules of the promotion, or otherwise, you will not conditionentry to the promotion upon taking anyaction on Facebook, for example,updating a status, posting on aprofile or Page, or uploading a photo.

You may, however, condition entry tothe promotion uponbecoming a fan of aPage.

最佳答案

我认为自从我第一次看到 Facebook 就更新了他们的文档:

现在更清楚了:

http://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe

“喜欢”点击是 edge.create 事件

关于facebook - 检测用户是否单击 XFBML 页面中的 'Like' 按钮的事件处理,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2837999/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com