javascript - Facebook Graph API won't return email address -


edit: not duplicate, because:

  • i have permission
  • debugged token
  • code works test user

please don't mark duplicate without reading.

i'm trying user e-mail address, don't it. on graph api explorer, when hit send, email field becomes grayed , says that:

field empty or disallowed access token

but when debug token has email permission granted

my profile has e-mail address.

update: tried https://developers.facebook.com/tools/console/ . profile returns nothing, on computer. same code returns email, name , uid of account.

code:

    <fb:login-button scope="email">   grant permissions make more examples work </fb:login-button>  <button onclick="dopost()">post stream</button>  <script> function userdata() {   fb.api('/me?fields=name,email', log.info.bind('/me callback')); };  fb.getloginstatus(function(response) {   if (response.status === 'connected') {     userdata();   } }); </script> 

it possible lockdown e-mail no 1 can has it? when grant permission?

i had same problem , think found out why: if user has unconfirmed email in facebook (i.e. facebook sent him validation mail email address didn't respond) facebook not pass email app if gave email permissions (!!!).

so did use facebook email if has user name (i.e. username@facebook.com).


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -