artdarek / oauth-4-laravel

OAuth Service Provider for Laravel 4
683 stars 215 forks source link

Linkedin can't fetch email field #153

Open JungSis opened 9 years ago

JungSis commented 9 years ago

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)

SystemR commented 9 years ago

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');