Thanks to visit codestin.com
Credit goes to github.com

Skip to content

How get emails in facebook, google, linkedin #109

@rudenko-programmer

Description

@rudenko-programmer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions