In Auth_Service_Facebook::service_user_info() the user info is requested via the /me endpoint.
It would be useful to define custom fields in the configuration.
For example:
/me?fields=id,name,email,username,installed,work
The advantages of specifying fields are:
- Adding fields which are accessible only when specified in the
fields parameter. Such fields are:
- installed
- security_settings
- third_party_id
- cover
- currency
- picture
- video_upload_limits
- Limiting the response to the needed information only so it could be faster. If a user has exposed a lot of information to the public,
/me would have a very large response.
The only way now is either use a separate request or extend the class Kohana_Auth_Service_Facebook and override the method.
In
Auth_Service_Facebook::service_user_info()the user info is requested via the/meendpoint.It would be useful to define custom fields in the configuration.
For example:
/me?fields=id,name,email,username,installed,workThe advantages of specifying fields are:
fieldsparameter. Such fields are:/mewould have a very large response.The only way now is either use a separate request or extend the class
Kohana_Auth_Service_Facebookand override the method.