gpt4 book ai didi

jquery - FB.ui 提要不提供回调

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

我无法从我的 Facebook FB.UI() 方法获得任何反馈。我确信我正在正确使用它,因为实际的帖子确实发布到我的墙上,但回调数据丢失或为空。我正在使用:

                    FB.ui({
method: 'feed',
name: 'asd',
link: 'asd',
picture: '',
description: 'asd'
}, function(response) {
console.log(response);
if(response.post_id) {
$.post("ajax/wall.php",{wall : 1});
} else {

}
}
);

最佳答案

我不确定这是如何自行解决的,但确实如此 :)

我清除了我的缓存并将我的代码更改为以下并且它有效(但是我不相信代码的更改实际上对其产生了任何影响:

FB.ui({method: 'feed',name: '',link: '',picture: '',description: 'asd'}, function(data) {
console.log(response);
if(data && data.post_id) {
$.post("ajax/wall.php",{wall : 1});
} else {
alert("not sent");
}
});

关于jquery - FB.ui 提要不提供回调,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8168327/

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