artdarek / oauth-4-laravel

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

linkedin scopes (r_emailaddress) #53

Closed zofe closed 10 years ago

zofe commented 10 years ago

I'm trying to use oauth-4-laravel with linkedin, I'm using the "exact" provided demo in the readme.md but declaring 'r_basicprofile', 'r_emailaddress' as scopes. I'va also configured this two scopes as default in the linkedin.com app-configuration page. The problem is that the response is an array with only: "firstName,"headline","lastName","siteStandardProfileRequest"
no email address. (note: the linkedin auth page notify correctly that the email will be shared, but it isn't returned in /people/~?format=json call, where I'm wrong?)

zofe commented 10 years ago

found the solution, the problem was in json call, I used now:

 /people/~:(id,first-name,last-name,headline,location,public-profile-url,email-address)?format=json

so my fault, sorry. However i suggest to update readme.md adding 'r_emailaddress' scope and json call to save some time for some other poor guy like me. bye

imfurman commented 9 years ago

thx man, its helpfull