Skip to main content


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 filling in your name and contact email, you can enter facebook developer 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


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

For 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


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


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!