# Facebook authentication

> Connect UiPath to Facebook using OAuth 2.0 with your Client ID, Client Secret, and Scope from a registered Meta OAuth application.

## Prerequisites

To create a connection, you need the following credentials:

* Client ID
* Client secret
* Scope

To learn how to retrieve the credentials, refer to the [Facebook documentation](https://developers.facebook.com/docs/facebook-login/guides/advanced/manual-flow/).

:::note
When registering your OAuth application in Facebook, make sure to set the [callback URL](connections#callback-url) to the value displayed on the connection creation page, for example `https://cloud.uipath.com/provisioning_/callback` for Automation Cloud.
:::

## Add the Facebook connection

1. Select Orchestrator from the product launcher.
2. Select a folder, and then navigate to the **Connections** tab.
3. Select **Add connection**.
4. To open the connection creation page, select the connector from the list. You can use the search bar to find the connector.
5. Enter the required credentials: Client ID and Client secret.
6. Select **Connect**.

   Where available, select the menu next to a field and choose **Use credential asset** or **Use Orchestrator asset** to reference an Orchestrator asset instead of entering the value directly. For more information, see [Use credential assets for connections](credential-store-connections.md).

7. Enter your Facebook credentials using Email address or phone number and Password.
8. Select **Log in**.
9. Enter your login code.
10. Select **Submit code**.
