artdarek / oauth-4-laravel

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

Facebook auth does not return email #154

Closed erhanw3 closed 9 years ago

erhanw3 commented 9 years ago

please help. İts only return array(2) { ["name"]=> string(10) "Arif Erzin" ["id"]=> string(17) "10153177435559690" }

omssharma commented 9 years ago

In the controller, use $result = json_decode( $fb->request( '/me?fields=id,name,email' ), true ); instead of $result = json_decode( $fb->request( '/me' ), true );

erhanw3 commented 9 years ago

Thanks. It works for the examples I tried.

omssharma commented 9 years ago

Great !!

erhanw3 commented 9 years ago

Is get email possible in twitter api?