> For the complete documentation index, see [llms.txt](https://docs.conscent.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.conscent.ai/version-2.0/facebook-sso-integration-guide.md).

# Facebook SSO Integration Guide

Welcome to the Facebook SSO Integration Guide. This document provides step-by-step instructions for integrating Facebook Login into your application, enabling users to authenticate with their Facebook credentials. This integration supports both web and mobile platforms (iOS and Android).

**Prerequisites:**

Before you begin, ensure you have the following:

* A registered Facebook Developer account.
* An app created in the Facebook Developer Console.
* Access to your application’s codebase (web or mobile).
* Your application’s redirect URLs (for web) or package names and key hashes (for mobile).

**Step 1: Create a Facebook App**

1. Log in to Facebook for Developers: Go to [developers.facebook.com](https://developers.facebook.com/) and log in with your Facebook account.
2. Create a New App:
   1. Click on **“My Apps”** in the top-right corner.
   2. Select **“Create App”**.
   3. Choose **“Consumer”** as the app type and click **“Next”**.
   4. Enter your **App Name** and **Contact Email**.
   5. Click **“Create App”** and complete any security checks.

**Step 2: Configure Your Facebook App**

1. **Obtain App ID and App Secret**
   1. In **“Settings” > “Basic”**, you will find your **App ID** and **App Secret**.
   2. **Important**: Keep your **App Secret** confidential.
2. **Whitelist Your SSO Domain**\
   \
   a. In your Facebook Developer Console, ensure your application’s domain is whitelisted:\
   \
   b. Go to “Settings” > “Basic”.\
   \
   c. Add your SSO domain(s) in the “App Domains” field.\
   \
   d. Ensure that your Bundle Identifier (iOS) and Package Name (Android) are correctly set for mobile apps.

**Step 3: Turn On Live Mode**

&#x20;    a. By default, If your app is in **Development Mode** and only accessible to admins, developers, and testers.

&#x20;    b. To make your app available to all Facebook users:

&#x20;    c. Go to the top bar of the dashboard.

&#x20;    d. Toggle the switch from **“In Development”** to **“Live”**.

**Note**: You may need to provide a privacy policy URL and adhere to Facebook’s platform policies.

**Conclusion**

By following this guide, you can integrate Facebook SSO into your application successfully. This will enhance user experience by providing a quick and secure login method.
