Passer au contenu principal

Facebook OAuth

Create a Facebook app

Go to Facebook Developers and create a new app. Choose the app type (e.g. Consumer).

Sélection Facebook

Après avoir entré votre nom et votre email de contact, vous serez dirigé vers le tableau de bord du développeur Facebook.

Tableau de bord

Ensuite, configurez la connexion Facebook :

Connexion Facebook

Choisissez la plateforme Web pour cette application :

Web Facebook

Under Facebook LoginSettings, set Valid OAuth Redirect URIs to Casdoor’s callback URL. In Casdoor, the application Redirect URL is your application’s callback URL. See Application config.

URI de redirection

Switch the app from In development to Live in the dashboard top bar.

Barre supérieure

Copy App ID and App Secret from SettingsBasic.

Application Facebook

Add the provider in Casdoor

Create an OAuth provider, set Type to Facebook, and enter App ID as Client ID and App Secret as Client Secret.

Client Facebook