Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FB.ui feed not giving a callback

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 {

                            }
                        }
                    );
like image 518
mauzilla Avatar asked Dec 21 '22 06:12

mauzilla


1 Answers

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");  
    }
 });
like image 155
mauzilla Avatar answered Jan 10 '23 16:01

mauzilla