Skip to content

Custom fields in service_user_info #1

@hkdobrev

Description

@hkdobrev

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions