Skip to content

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

  1. Log in with your Facebook account.
  2. Click on "My Apps" in the top-right corner.
  3. Select "Create App".
  4. Choose an App type (e.g., For Everything Else).
  5. Enter an App name (e.g., DjangoFacebookAuth).
  6. Enter your email and click Create App ID.

3. Set Up Facebook Login

  1. In the App Dashboard, select Facebook Login under Add a Product.
  2. Click on Set Up.

4. Configure Facebook Login

  1. Under Facebook Login, choose Settings.
  2. Add Valid OAuth Redirect URIs:
  3. Development: http://localhost:8000/auth/facebook/callback/
  4. Production: Replace localhost with your domain (e.g., https://api.example.com/auth/facebook/callback/).

5. Get App ID and App Secret

  1. In the App Dashboard, go to Settings > Basic.
  2. Here, you will find your App ID and App Secret.
  3. Copy these values for later use in your application.

6. Enable Facebook Permissions (Optional)

  1. If you need additional user data (e.g., email, friends list), go to Facebook Login > Settings.
  2. In App Review, select Permissions and enable required permissions like email.

7. Submit App for Review (Optional)

  1. 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.
  2. To do this, go to App Review > Permissions and Features and submit your app for review.