Source Code


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 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 Thu, Oct 5, 2023