artdarek / oauth-4-laravel

OAuth Service Provider for Laravel 4
685 stars 217 forks source link

Facebook and Twitter auth does not return email #166

Open paulioceano opened 8 years ago

paulioceano commented 8 years ago

Please help me, it is only returning the name and the ID for Facebook and all the user information except for the email in twitter.

I've been trying to use $result = json_decode( $fb->request( '/me?fields=id,name,email' ), true ); instead of $result = json_decode( $fb->request( '/me' ), true ); in the controller but it doesn't work!

RydelHouse commented 8 years ago

Same problem!

melee1984 commented 7 years ago

Just want to share with you if maybe you haven't configure it how.

$result = json_decode( $fb->request( '/me?locale=en_US&fields=name,email' ), true );

got the result right!.