Auth Module
1.0.0
1.0.0
  • README
  • docs
    • providers
      • GitHub
      • Google
      • Auth0
      • Laravel Passport
      • Facebook
    • Auth Module
    • Migration Guide
    • guide
      • Middleware
      • Providers
      • Setup
      • Schemes
    • recipes
      • Extending Auth plugin
    • api
      • API
      • options
      • storage
      • auth
    • schemes
      • Local
      • Oauth2
    • glossary
  • .github
    • ISSUE_TEMPLATE
  • CHANGELOG
Powered by GitBook
On this page
  • Usage
  • Obtaining client_id
  1. docs
  2. providers

Facebook

PreviousLaravel PassportNextAuth Module

Last updated 5 years ago

Usage

auth: {
  strategies: {
    facebook: {
      client_id: '...',
      userinfo_endpoint: 'https://graph.facebook.com/v2.12/me?fields=about,name,picture{url},email,birthday',
      scope: ['public_profile', 'email', 'user_birthday']
    },
  }
}

Anywhere in your application logic:

this.$auth.loginWith('facebook')

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

Obtaining client_id

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

Source Code
oauth2 scheme
Facebook Developers