FB.ui提要未提供回调 [英] FB.ui feed not giving a callback

查看:111
本文介绍了FB.ui提要未提供回调的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am unable to get any feedback from my Facebook FB.UI() method. I am convinced that I am using it correctly, as the actual post does post to my wall, but the callback data is either missing or empty. I am using:

                    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 {

                            }
                        }
                    );

推荐答案

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

I am not sure how this resolved itself, but it did :)

我清除了缓存并将代码更改为下面的代码,它仍然起作用(但是我不相信代码的更改实际上会对它产生任何影响:

I cleared my cache and changed my code to below and it worked (however I don't believe the change of code actually played any influence on it:

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");  
    }
 });

这篇关于FB.ui提要未提供回调的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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