philsturgeon / codeigniter-oauth2

NO LONGER ACTIVELY MAINTAINED. USE https://github.com/thephpleague/oauth2-client INSTEAD
http://getsparks.org/packages/oauth2/versions/HEAD/show
351 stars 178 forks source link

Facebook provider fields update #65

Open arcontact opened 9 years ago

arcontact commented 9 years ago

I know it's deprecated but i have a little fix in Facebook provider (Provider/Facebook.php)

Line 28. Change: $url = 'https://graph.facebook.com/me?'.http_build_query(array( 'access_token' => $token->access_token ));

To this: $url = 'https://graph.facebook.com/me?'.http_build_query(array( 'access_token' => $token->access_token, 'fields' => 'id,name,email,first_name,last_name' ));