/ Published in: JavaScript
A user has already logged in and is using our apps and then we need an additional permission. We can easily ask for extra permissions anytime.
My snippet is asking only for publish_stream permission, but you can ask for any valid permission. Just change the scope variable at the last line of the code.
Expand |
Embed | Plain Text
FB.login(function(response) { console.log(response); if (response.authResponse) { console.log('Permission granted'); } else { console.log('User cancelled login or did not fully authorize.'); } }, {scope: 'publish_stream'});
You need to login to post a comment.
