artdarek / oauth-4-laravel

OAuth Service Provider for Laravel 4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Facebook auth does not return email

erhanw3 opened this issue · comments

commented

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

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

commented

Thanks.
It works for the examples I tried.

Great !!

commented

Is get email possible in twitter api?