How to Set Up Facebook OAuth

Setting up Facebook OAuth makes it easier for users to log in with their Facebook credentials, offering a convenient and familiar login experience. Follow these steps to integrate Facebook OAuth into your application:

Step 1: Create a Facebook Developer Account

Click "Get Started"

Step 2: Create a New App

Select "Create App"
  • Choose the "Allow people to log in with their Facebook account" option, then click "Next."
Choose the "Allow people to log in with their Facebook account"
  • Enter your app name (which will appear in the login popup), your contact email, and select a Business Account.
Enter your app name, your contact email, and select a Business Account
  • Click "Create App".

Step 3: Configure Use Case

  • Click on "Use Case."
Click on "Use Case"
  • On "Authentication and Account Creation," click "Customize."
Click "Customize"
  • In the permissions section, click "Add" for email and wait for its status to update to "Ready for testing."
Click "Add"
  • Click "Go To Settings."
Click "Go To Settings"
Input URL
  • Click "Save Changes" and return to the dashboard.

Step 4: App Settings Configuration

Navigate to “App Settings” - “Basic” and complete the following:

Navigate to “App Settings” - “Basic” and fill in required details

Step 5: Configure Facebook OAuth

  • Copy your “App ID” and “App Secret”
Copy your “App ID” and “App Secret”
Paste your “App ID” and “App Secret”
  • Toggle the "Use your store name on Facebook login" switch until it turns green.
Enable the toggle  "Use your store name on Facebook login"
  • Click "Save Changes."
Click "Save Changes."

Step 6: Publish Your Facebook App

  • Go to the "Go Live" section.
Go to the "Go Live"
  • Verify your business, then select your verified business.
  • Answer the required questions in the "Data Handling Questions" section.
  • Click "Go Live" to make the app publicly accessible for Facebook login.
  • Once published, the Facebook login will be ready to use in your store.
Facebook display

Congratulations! You've successfully set up Facebook OAuth and obtained your App ID and App Secret. Make sure to store your app secret securely, as it’s sensitive information critical to authentication.

For further assistance, reach out to us at help@bitbybit.studio

More articles

Understanding AI Agent: GPT-3.5 Turbo vs. GPT-4o

Discover the differences between GPT-3.5 Turbo and GPT-4o with bitbybit. Compare features, costs, and use cases to find the ideal AI solution for your business.

How to Connect Stamped Loyalty Account

Learn how to connect your Stamped Loyalty account to seamlessly sync your loyalty program with your Shopify store.

How to Create a Message Template for OTP WhatsApp Cloud API

Discover how to integrate secure OTP message template functionality with the WhatsApp Cloud AP for smooth customer authentication.

More blogs