oauth-4-laravel
oauth-4-laravel copied to clipboard
Facebook and Twitter auth does not return email
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!
Same problem!
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!.