Skip to main content

Facebook

To set up Facebook OAuth provider, please go to Facebok developer to create a new app.

Select what kind of app you are going to create.

Facebook select

After fill name and contact email, you can enter facebook developer dashboard.

Dashboard

Then set up Facebook login:

Facebook login

Choose Web platform for this app:

Facebook web

After fill the website url, you can go to Facebook Login > Settings, and fill valid OAuth Redirect URIs

Redirecturis

Set authorized redirect URLs correctly

In Facebook OAuth config, the Valid OAuth Redirect URIs must be your Casdoor's callback url, and the Redirect URL in Casdoor should be your application callback url

More details please read App config

Basic app configuaration is almost done!

Switch mode from In development to Live in the top bar of dashboard

topbar

Then your App ID and App secrets can be used in Casdoor.

facebookapp

Add a Facebook OAuth provider and fill the Client ID and Client Secrets with App ID and App Secrets in your Casdoor.

Facebook Client

Now you can use Facebook as third party service to complete authentication!