gpt4 book ai didi

facebook - FB.event.subscribe ('comment.create' ) 不起作用

转载 作者:行者123 更新时间:2023-11-30 05:21:37 25 4
gpt4 key购买 nike

我正在尝试在用户使用社交插件发表评论时收到通知。代码如下:

<fb:comments href='someurl' width='400'></fb:comments>
FB.Event.subscribe('comment.create', function(response)
{
alert(response);
}

很简单,但它不起作用。有人得到了一些可能的错误?从我的在线研究来看,通知似乎没有真正的一致性。有时有效,有时无效。

最佳答案

notify="true" 属性添加到 fb:comments 标签。

<fb:comments notify="true" href='someurl' width='400'></fb:comments>
FB.Event.subscribe('comment.create', function(response)
{
alert(response);
}

关于facebook - FB.event.subscribe ('comment.create' ) 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6146925/

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