Setting Up Facebook OAuth
Follow these steps to set up Facebook OAuth credentials for signing up with Facebook:
1. Visit Facebook Developer Console
Go to Facebook for Developers.
2. Create a New App
- Log in with your Facebook account.
- Click on "My Apps" in the top-right corner.
- Select "Create App".
- Choose an App type (e.g., For Everything Else).
- Enter an App name (e.g.,
DjangoFacebookAuth). - Enter your email and click Create App ID.
3. Set Up Facebook Login
- In the App Dashboard, select Facebook Login under Add a Product.
- Click on Set Up.
4. Configure Facebook Login
- Under Facebook Login, choose Settings.
- Add Valid OAuth Redirect URIs:
- Development:
http://localhost:8000/auth/facebook/callback/ - Production: Replace
localhostwith your domain (e.g.,https://api.example.com/auth/facebook/callback/).
5. Get App ID and App Secret
- In the App Dashboard, go to Settings > Basic.
- Here, you will find your App ID and App Secret.
- Copy these values for later use in your application.
6. Enable Facebook Permissions (Optional)
- If you need additional user data (e.g., email, friends list), go to Facebook Login > Settings.
- In App Review, select Permissions and enable required permissions like
email.
7. Submit App for Review (Optional)
- If your app requires permission to access data for a large number of users, you may need to submit your app for Facebook's review process.
- To do this, go to App Review > Permissions and Features and submit your app for review.