How to Get Facebook Auth Keys
Step-by-Step Guide
- Go to the Facebook Developers website and sign in.
- Navigate to the Apps Dashboard and click Create App.
- In the "Use Case" options, select Customize under "Authentication and Account Creation".
- First, go to the Permissions section, find the email permission, and click the Request button.
- Next, go to the Settings section and set the Deauthorize Callback URL to
https://localhost:3000/api/auth/callback/facebook
(for development). - In the main left sidebar, select App Settings. You’ll see two options: Basic and Advanced.
- Click on Basic, where you’ll find your App ID and App Secret.
Add these credentials to your .env
file:
FACEBOOK_CLIENT_ID=your-facebook-app-id
FACEBOOK_CLIENT_SECRET=your-facebook-app-secret