I’m trying to execute callback function in FB.ui (send dialog). It called in same moment when loaded FB.ui but I want execute callback function after pressing ‘send’ or ‘cancel’ button. Is it realizable?
function callback(response) {
alert('message was sent');
}
FB.ui({
method: 'send',
name: 'Dialog',
link: 'http://***.com',
redirect_uri: '****',
description: '***',
picture: '***',
to: userId
},
callback(response)
);
Yo, I’m not sure if it’s your case, but it seems there’s a bug when testing on development environments, mostly due an issue related to the port parameter in a url.
Check this out: http://developers.facebook.com/bugs/380566711996797
wasted like 2 hours freaking out due to this “bug”