Auth0 Home Blog Docs

Can't receive the email of the user after he approves the app [FB]


#1

Hey guys,
I’m working with cURL & Facebook sdk for 5-6 years, and had no trouble at all.
But now, I suddenly can’t receive the user’s email address after he logs in my site and a unique personal token is generated for him.
I mean my scope is: public_profile, email. that’s all. I first noticed it when I looked at my database and saw that there are empty rows of “email”.

So I joined Auth0, to check what’s the issue. And also on this platform, I can’t get any email address although the “email” permission is allowed by Facebook by any app and does not require any additional approval or review by them.

I’m getthing this info:
“sub”: “facebook|1031231212355512”,
“given_name”: “Ted”,
“family_name”: “Mosby”,
“nickname”: “tudalos98”,
“name”: “Ted Mosby”,
“picture”: “xxxxxxxx”,
“gender”: “male”,
“locale”: “en-US”,
“updated_at”: “2018-07-09T12:31:12.593Z”
}

there’s no “email” line at all as you can see…
I re-checked this more than 3 times, re-checked myself and ticked the “email” box & re-checked the scope parameters in the url before logging to the app.

I also checked it with 3 different users, all 3 verified emails.

The really strange thing is that I don’t know what’s the “nickname” line is realated to… I mean facebook doesn’t let you choose a “nickname”. There are only your first&last name & your username(which comes right after facebook.com/myusername)

The strange thing is the “nickname” that is mentioned here, is not the “username” that comes after facebook.com/ BUT this is the username of my email address. I mean:
My email address is: tudalos98@gmail. com
my facebook short link is: facebook.com/ted.mosby.9;
and there is the “nickname” that is fetched by facebook:

“nickname”: “tudalos98”,

Where do you think is the problem?
Thanks alot.