Facebook

Source Code

Usage

auth: {
  strategies: {
    facebook: {
      endpoints: {
        userInfo: 'https://graph.facebook.com/v6.0/me?fields=id,name,picture{url}'
      },
      clientId: '...',
      scope: ['public_profile', 'email']
    },
  }
}

Anywhere in your application logic:

this.$auth.loginWith('facebook')

💁 This provider is based on oauth2 scheme and supports all scheme options.

Obtaining clientId

This option is REQUIRED. To obtain one, create your app in Facebook Developers and add "Facebook Login" product. Then set valid callback URLs. Client ID is same as your "App ID".

Edit this page on GitHub Updated at Sun, Aug 4, 2024