angularjs - Angular + Facebook JS SDK login: Not requesting my permissions -


fb.login() not working. fb popup not requesting right permissions. can see, in source code there's fn handler uses right parameters / parameters being set correctly. i'd understand why isn't working ?

this code i've got far:

http://jsbin.com/itey/1/

this i'm setting permissions list:

facebook.login(function(response) {     console.log(response); }, {scope: 'email,user_likes'}); 

in accordance docs ( https://developers.facebook.com/docs/reference/javascript/fb.login/ )

by doing console.log in fn handler login(), fn function(response){ ... } , {scope: 'email,user_likes'}

i found other users reporting same issue using fb sdk here in so. tried tip use "perms" instead of "scope", get:

oauth2 specification states 'perms' should called 'scope'. please update.

  • not appearing problem. shows param being send there. go wonder why's not working ?! i've cleaned cache too

  • originally i've reported issue (angularjs: di error - no module: $facebook, why isn't working?) solved. having access fb object i'm not able right permissions user. i'm sure issue related facebook api , not angular module

**** i've tried check permissions using .api :

facebook.api('/me/permissions', function (response) {     console.log(response); } ); 

console.log reports:

object {error: object}

***** i've tried access through graph using access_token:

https://graph.facebook.com/me/permissions?access_token=xxxxxxxx

and can see right permissions, facebook login popup never asked me them ? shouldn't ?

  {      "data": [         {            "installed": 1,            "basic_info": 1,            "email": 1,            "read_friendlists": 1,            "user_likes": 1,            "user_online_presence": 1,            "user_friends": 1         }      ],      "paging": {         "next": "xxxxxxx"      }   } 

i've asked different user, i've added sandbox admin , got required permissions popup! so, think do, own username had permissions set or - though tried delete cache, etc!

so, there's no issue solve. hope useful else in future!

any 1 experienced can take ?

thank you

try attaching listener facebook login event / statuschange:

$facebookprovider.event.subscribe('auth.authresponsechange', function (response) {     console.log(response); }) 

and @ response element see if have error or not


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -