# Facebook Business

## Create Facebook OAuth Application

1. Visit <https://developers.facebook.com/> and create a new OAuth application (or use your existing one).
2. Add **Facebook Login for Business** and **Marketing API** products.\\

   <figure><img src="/files/s9ML5NBfipkVdKbgfDKV" alt=""><figcaption></figcaption></figure>
3. Copy the **App ID** and **App Secret** a and paste it to your **Appmixer Backoffice -> Connector Configuration** page under the `appmixer:facebookbusiness` configuration ID as `clientId` and `clientSecret`, respectively:\\

   <figure><img src="/files/rst9mlCpJccBgnPVJGQG" alt=""><figcaption></figcaption></figure>

   <figure><img src="/files/qHbaf89QEgrtO9MAnjZs" alt=""><figcaption></figcaption></figure>

   <figure><img src="/files/HmZ9xkzTX951MI52majT" alt=""><figcaption><p>Use App ID as clientId and App Secret as clientSecret</p></figcaption></figure>
4. Add your Appmixer tenant domains as your **App domains**:\\

   <figure><img src="/files/GQCUxSdI5PWkpW3noZiv" alt=""><figcaption></figcaption></figure>

   Note: replace YOUR\_TENANT with the name of your hosted tenant. If you're a customer on an Appmixer Self-Managed plan, you can have a completely custom domains that Appmixer runs on. Use your own domains instead.
5. Set the OAuth redirect URI under **Facebook Login for Business** / **Settings** to `https://api.YOUR_TENANT.appmixer.cloud/auth/facebookbusiness/callback`:\\

   <figure><img src="/files/lBTUOWb3iByPbfpRQOUD" alt=""><figcaption></figcaption></figure>


---

# 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.appmixer.com/connector-configuration/facebook-business.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.
