The input works, but it only asks for basic permissions and does not trigger a warning when the dialog is canceled or terminated.
window.fbAsyncInit = function() {
FB.init({
appId : 'XXX',
channelUrl : 'XXX',
cookie : true,
xfbml : true,
frictionlessRequests: true,
oauth: true
});
FB.login(function(response) {
if (response.authResponse) {
alert("ok");
} else {
alert("canceled");
}
}, {scope:'publish_actions,publish_stream'});
};
Chris source
share