# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.conscent.ai/version-2.0/facebook-sso-integration-guide.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
