How to connect Facebook login to Cloudflare

First, go to developers.facebook.com. Click on the menu in the top right corner and select Add a New App.

Screen_Shot_2017-08-31_at_4.59.19_PM.png

Name your app, enter your email address and press create.

Screen_Shot_2017-08-31_at_5.02.14_PM.png

Select the product Facebook Login by clicking 'Set Up' on the Facebook Login card.

Screen_Shot_2017-08-31_at_5.03.17_PM.png

Choose the platform 'Web'.

Screen_Shot_2017-08-31_at_5.04.46_PM.png

Enter your authentication domain (something.cloudflareaccess.com) and click save then continue.

Screen_Shot_2017-08-31_at_5.06.02_PM.png

The rest of the steps on the page give you javascript to install on your site. You can ignore those. Instead,go to Settings on the left side menu of the page.

Copy the App ID and App Secret into the Cloudflare dashboard into the fields called OAuth ID and OAuth Secret respectively. 

Screen_Shot_2017-08-31_at_5.10.35_PM.png

Then click on the Facebook Login option in the left side menu. Move the slider to Yes for the option 'Use Strict Mode for Redirect URIs'.

Then enter into the Valid OAuth redirect URIs field: your authentication domain /cdn-cgi/access/callback. Click Save Changes.

Screen_Shot_2017-08-31_at_5.13.27_PM.png

Still not finding what you need?

The Cloudflare team is here to help. 95% of questions can be answered using the search tool, but if you can’t find what you need, submit a support request.

Powered by Zendesk