Skip to content
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

How get emails in facebook, google, linkedin #109

Open
rudenko-programmer opened this issue Sep 2, 2017 · 0 comments
Open

How get emails in facebook, google, linkedin #109

rudenko-programmer opened this issue Sep 2, 2017 · 0 comments

Comments

@rudenko-programmer
Copy link

rudenko-programmer commented Sep 2, 2017

I add next code in serveces/FacebookOAuth2Servise.php

protected $scopes = [self::SCOPE_EMAIL];

$info = $this->makeSignedRequest('me', [
            'query' => [
                'fields' => join(',', [
                    'id',
					'email',
                    'name',
                    'link',
                ])
            ]
        ]);
	$this->attributes['id'] = $info['id'];
	$this->attributes['name'] = $info['name'];
	$this->attributes['url'] = $info['link'];
	$this->attributes['email'] = $info['email'];

`

But i can not get email, http://prntscr.com/ggd03q email == null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant