Setup
Create a Facebook App
- Log in to the Meta for Developers console.
- Click My Apps → Create App.
- Choose Consumer as the app type and click Next.
- Fill in the app name and contact email, then click Create App.
- In the app dashboard, go to Settings → Basic and copy the App ID and App Secret.
- Add the Facebook Login product, then under its settings add your site's callback URL to Valid OAuth Redirect URIs:
https://your-site.com/?rest_route=/simple-jwt-login/v1/oauth/token&provider=facebook - Save your changes.
warning
Keep your credentials secure - never commit them to version control or expose them publicly. Use separate Facebook apps for each environment (development, staging, production).
Configure in WordPress
- Go to Simple JWT Login → Integrations → OAuth → Facebook.
- Enter the App ID and App Secret from the Meta for Developers console.
- Set the Redirect URI to match what you registered in Facebook.
- Toggle Enable to activate the Facebook provider.
| Field | Description |
|---|---|
| App ID | The Facebook App ID |
| App Secret | The Facebook App Secret |