Facebook OAuth
Set up Facebook authentication for your Conduit application.
Prerequisites
- Facebook Developer account
- Conduit with Authentication module running
Step 1: Create Facebook App
- Go to Facebook Developers
- Click My Apps > Create App
- Select app type (Consumer or Business)
- Complete app setup
Step 2: Configure Facebook Login
- In app dashboard, click Add Product
- Select Facebook Login > Set Up
- Choose Web
- Add your site URL:
http://localhost:3000
Step 3: Get Credentials
- Go to Settings > Basic
- Note your App ID (Client ID)
- Note your App Secret (Client Secret)
Step 4: Set Callback URL
- Go to Facebook Login > Settings
- Add Valid OAuth Redirect URI:
http://localhost:3000/hook/authentication/facebook
Step 5: Configure Conduit
- Open Admin Panel > Authentication > Settings
- Enable Facebook provider
- Enter App ID and App Secret
- Save configuration
Step 6: Test Authentication
Get Auth URL
curl -X GET 'http://localhost:3000/authentication/init/facebook'
Complete Flow
- Navigate to returned URL
- Log in with Facebook
- Conduit handles callback
Production Notes
- App must be in Live mode for public use
- Complete Facebook's app review if required
- Update callback URL for production domain
Scopes Requested
email- User's email addresspublic_profile- Basic profile information