pitchtarget / ember-cli-facebook-js-sdk

Simple Facebook SDK for Javascript addon for your Ember CLI app.
MIT License
29 stars 15 forks source link

scope at login #2

Closed ghost closed 9 years ago

ghost commented 9 years ago

Hey, fthank you for your work!

But.. how to use scope like the original FB SDK inside of a controller?

example: FB.login(function(response) { // handle the response }, {scope: 'email,user_likes,manage_pages'});

Thank you for your answer, Greetz jakope

bugant commented 9 years ago

@jakope you can use it like that:

FB.login('email,user_likes,manage_pages').then(function(response) {
  console.log('success', response);
}).catch(function(reason) {
  console.erorr('error', reason);
});
ghost commented 9 years ago

Thank you!

Matteo Centenaro notifications@github.com schrieb am Fr., 10. Juli 2015 17:50:

@jakope https://github.com/jakope you can use it like that:

FB.login('email,user_likes,manage_pages').then(function(response) { console.log('success', response); }).catch(function(reason) { console.erorr('error', reason); });

— Reply to this email directly or view it on GitHub https://github.com/pitchtarget/ember-cli-facebook-js-sdk/issues/2#issuecomment-120442030 .

bugant commented 9 years ago

@jakope I'm closing this issue, if you find any problem feel free to re-open this ticket or create a new one.