artdarek / oauth-4-laravel

OAuth Service Provider for Laravel 4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Linkedin can't fetch email field

JungSis opened this issue · comments

When i'm using the linkedin connector.

I can't seem to get the email details of the login user.

I tried to add 'r_emailaddress' on the scope (configuration file) but the results is the same (no email field)

You need to add the scope on linkedin side. You'll be able to access it once you have the access token. I think something like this:

$linkedinService->request('/people/~:(id,first-name,last-name,email-address)?format=json');