1
1
16Gb2016-10-15 13:23:57
Facebook
16Gb, 2016-10-15 13:23:57

Why doesn't facebook login always return email?

I am using yii\authclient\OAuth2.
When logging in, some users email is not transmitted. With what it can be connected?
public function onAuthSuccess($client)
{
$attributes = $client->getUserAttributes();
here sometimes there is no email
cm9w7HEjtlE.jpg
out the screen
should return
name
email
id
and for some users only. as the screenshot shows
name
id

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question