-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can't get the user's eMail from a succesfull facebook's login #153
Comments
that means the user doesn't have an email. they probably signed up with a
|
I've checked it, even email duplicated but don't. The FB user was created with email, and that email did not previously exist in the database. In auth_ket table, provider_attributes column i have this: |
Then I don't know. You'll have to dump the data you get from facebook and check if you're actually getting an email. https://github.com/amnah/yii2-user/blob/master/controllers/AuthController.php#L239-L241 print_r($attributes);
exit; |
Yes, it seems like i am not reciving email from FB: Array ( [name] => John Lee [id] => 11XXXXXXXXXXX ) That's weird... |
Well, it seems there may be many reasons, in accordance with Facebook's boys:
|
Hmmm ... is it possible that the first time you authenticated, it didn't ask for email permission? Then the next time you changed the scope to ask for email, but because you didn't allow it the first time it doesn't send it. Or would it ask you to to re-authorize because of different permissions? |
In the user table, email column is empty, the rest it's fine. This is my web.php configuration:
I even can see the facebook's oAuth pop up, where i accept the email permission.
The text was updated successfully, but these errors were encountered: