Facebook login
Facebook login request
| Field | Description |
|---|---|
| cb | Callback URL to redirect the user to after the authentication process has been completed |
| (opts.auth_type) | rerequest |
| opts.scope | Comma separated list of extended permissions |
| opts.return_scopes | When true, the granted scopes will be returned in a comma-separated list in the grantedScopes field of the authResponse |
| opts.enable_profile_selector | When true, prompt the user to grant permission for one or more Pages |
| (opts.profile_selector_ids) | Comma separated list of IDs to display in the profile selector |
Based on documentation for FB.login()
Scopes
- public_profile
- user_friends
- user_about_me
- user_actions.books
- user_actions.fitness
- user_actions.music
- user_actions.news
- user_actions.video
- user_actions:{app namespace}
- user_activities
- user_birthday
- user_education_history
- user_events
- user_games_activity
- user_groups
- user_hometown
- user_interests
- user_likes
- user_location
- user_managed_groups
- user_photos
- user_posts
- user_relationships
- user_relationship_details
- user_religion_politics
- user_status
- user_tagged_places
- user_videos
- user_website
- user_work_history
- read_friendlists
- read_insights
- read_mailbox
- read_page_mailboxes
- read_stream
- manage_notifications
- manage_pages
- publish_actions
- rsvp_event
Facebook login request callback on success
| Field | Description |
|---|---|
| code |
Facebook login request callback on failure
| Field | Description |
|---|---|
| error | |
| error_description | |
| error_code | Numerical code for errors |
| error_reason |