# Facebook

### Supported Login Packages

Facebook login can be integrated and used with the Wepin Login Library. Refer to the documentation for the login library for each SDK.

{% hint style="info" %}
All social login authentication providers compatible with Wepin support Simplified Login. If you wish to implement Simplified Login, please refer to the [Simplified Login page](../simplified-login).
{% endhint %}

<table><thead><tr><th width="275">Platform</th><th>Login Package</th></tr></thead><tbody><tr><td>Web</td><td><a href="../../widget-integration/web-javascript-sdk/login-library">@wepin/login-js</a></td></tr><tr><td>Flutter</td><td><a href="../../widget-integration/flutter-sdk/login-library">wepin_flutter_login_lib</a></td></tr></tbody></table>

### Registering Login Providers

{% hint style="info" %}
To enable social login for mobile applications, you must register the login providers in the Workspace. For web environments or when implementing Simplified Login, Workspace registration is not required.
{% endhint %}

1. In the [Wepin Workspace](https://workspace.wepin.io/workspace), navigate to the **Login** tab under the **Development Tools** menu.
2. In the Login tab, click the **Set Login Provider** button.

<figure><img src="https://2285137990-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsVhEIYmplGN5Zxk3tywO%2Fuploads%2FcGTpXsvPBHMWuuLgO1vj%2Fimage.png?alt=media&#x26;token=3e3c07db-3dce-4977-b583-02a076364555" alt=""><figcaption></figcaption></figure>

3. After verifying the information in the [Meta Developers](https://developers.facebook.com/apps), enter the **App ID** and **App Secret Code** values into the workspace.

<figure><img src="https://2285137990-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsVhEIYmplGN5Zxk3tywO%2Fuploads%2FjzGvhzNV0nyaVXr5Crij%2Fimage.png?alt=media&#x26;token=70551743-bf2f-4d72-b0de-976f484623c9" alt=""><figcaption></figcaption></figure>

4. Once all the required information is entered and the Redirect URL is generated, refer to [Facebook APIs](https://developers.facebook.com/docs/development/create-an-app/facebook-login-use-case) to register the Redirect URL with the OAuth Provider.
