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");
}
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With