> For the complete documentation index, see [llms.txt](https://docs.thewalletcrew.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thewalletcrew.io/guides-enrolment/enrolment/enrolment-form/social-sign-in/facebook-sign-in.md).

# Facebook sign-in

Configure Facebook Login for enrolment forms: create a Facebook App, set redirect URIs and domains, then add the App ID and secret in the admin console.

Use this page to enable the **Facebook** button in an enrolment form. Read [Social sign-in](https://docs.thewalletcrew.io/guides-enrolment/enrolment/enrolment-form/social-sign-in.md) first for the customer flow, the [hosts to allow](https://docs.thewalletcrew.io/guides-enrolment/enrolment/enrolment-form/social-sign-in.md#hosts-to-allow) and the way to [enable a provider on the form](https://docs.thewalletcrew.io/guides-enrolment/enrolment/enrolment-form/social-sign-in.md#enable-a-provider-on-the-form).

<div data-with-frame="true"><figure><img src="https://831874859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlFokgwgJiwLXu7G8MVSJ%2Fuploads%2Fgit-blob-b4d9303e6287fabc9d33d103d3475d32b2291f0a%2Ffacebook-social-sign-in-flow.png?alt=media" alt="Enrolment form with a Facebook sign-in button" width="375"><figcaption><p>Connect with Facebook in an enrolment form example</p></figcaption></figure></div>

## What is set up here

* A **Facebook App** with the Facebook Login product enabled, in the brand's **Meta for Developers** account (permission to create or manage Facebook Apps is required).
* **Valid OAuth redirect URIs** and **allowed domains** for the enrolment form hosts.
* The App ID and the App secret stored in the admin console.

## Create the Facebook App

{% stepper %}
{% step %}

### Open the Meta Developer portal

Go to the Meta for Developers Apps dashboard:

<p align="center"><a href="https://developers.facebook.com/apps" class="button secondary" data-icon="chevrons-right">Meta Apps Dashboard</a></p>
{% endstep %}

{% step %}

### Create a new App

1. Click **Create App**.
2. Select the use case **Authenticate and request data from users with Facebook Login**. Meta adds Facebook Login to the app automatically.
3. Set a name. Example: `Wallet Crew login`.
4. Complete the app creation wizard and confirm the developer account if prompted.
   {% endstep %}

{% step %}

### Configure allowed domains and redirect URIs

Navigate to **Facebook Login → Settings** in the left sidebar and configure the following:

**Valid OAuth Redirect URIs**: add every host listed in [Hosts to allow](https://docs.thewalletcrew.io/guides-enrolment/enrolment/enrolment-form/social-sign-in.md#hosts-to-allow), one entry per environment.

**Login with JavaScript SDK**: set it to **Yes**. The enrolment form signs in with the Facebook JavaScript SDK.

**Allowed Domains for JavaScript SDK**: add the same list of hosts. Meta supports only `https` pages for this login.

Save your changes.

{% hint style="info" %}
Unlike Google, Facebook requires both the redirect URI and the domain allowlist to be filled in.
{% endhint %}
{% endstep %}

{% step %}

### Switch the App to Live mode

1. In the top bar of the App dashboard, toggle the app from **Development** to **Live**.
2. If prompted, provide a **Privacy Policy URL** — this is required by Meta before going live.

{% hint style="info" %}
While in Development mode, only users listed as testers or developers on the app can sign in. Switch to Live so all users can authenticate.
{% endhint %}
{% endstep %}
{% endstepper %}

## Add the App ID and App secret in The Wallet Crew

1. Open **Settings → Enrollment → Social sign in → Facebook** in the admin console.

<p align="center"><a href="https://admin.thewalletcrew.io/tenant/~/settings/social-sign-in/facebook" class="button secondary" data-icon="chevrons-right">Social sign in → Facebook</a></p>

<div data-with-frame="true"><figure><img src="https://831874859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlFokgwgJiwLXu7G8MVSJ%2Fuploads%2Fgit-blob-bf10ebbcfea2575181b32e254cd8a8385eb6234d%2Fsocial-sign-in-facebook-settings-single-frame.png?alt=media" alt="Facebook tab of the Social sign in settings in the admin console"><figcaption><p>The Wallet Crew - Facebook Social Sign In configuration</p></figcaption></figure></div>

2. Paste the **App ID** and the **App secret** from Meta for Developers (**App settings → Basic**). The App secret is stored server-side and used to verify the customer's Facebook token. Paste it only in the admin console, never in front-end code. After saving, it is hidden.
3. Save.

## Enable Facebook on the enrolment form

Add the provider to the form as described in [Enable a provider on the form](https://docs.thewalletcrew.io/guides-enrolment/enrolment/enrolment-form/social-sign-in.md#enable-a-provider-on-the-form), with `type: facebook` and no `displayProps`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.thewalletcrew.io/guides-enrolment/enrolment/enrolment-form/social-sign-in/facebook-sign-in.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
