Posted By

izaiasdotcom on 03/20/12


stream app publish facebook extended permission

Versions (?)

Asking for extended permission on Facebook app

 / 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.

  1. FB.login(function(response) {
  3. console.log(response);
  5. if (response.authResponse) {
  7. console.log('Permission granted');
  8. } else {
  9. console.log('User cancelled login or did not fully authorize.');
  10. }
  11. }, {scope: 'publish_stream'});

Report this snippet  

You need to login to post a comment.