# Facebook

<div data-full-width="true"><figure><img src="/files/wrOKNSkjax7klNxR8XYX" alt=""><figcaption></figcaption></figure></div>

## 🌐 URL

<https://app.affiliaters.in/social/facebook>

Facebook is a renowned social media platform recognized for its extensive user base, diverse features, and the ability to connect with friends and family worldwide. It offers a dynamic environment for sharing updates, photos, and connecting with the people who matter most.

## Setup Facebook

* Enter your **Facebook long token** that you [generated from here](#how-to-create-app-for-facebook) to start your page posting

<figure><img src="/files/98LxsIWbhc3qIuRvhliG" alt="" width="476"><figcaption></figcaption></figure>

* If your token is correct you will see all your pages like below

<figure><img src="/files/reqLYcs71gb96oi0jO0F" alt="" width="509"><figcaption></figcaption></figure>

* Select **Start Posting** where you want to post your deals

<figure><img src="/files/zmrVdb352mS8GZ5IECor" alt="" width="489"><figcaption></figcaption></figure>

## How to create App for Facebook

Follow the step by step guide that help you to make apps in facebook

* First of all go to [https://developers.facebook.com](https://developers.facebook.com/) and signup/login if not done
* After login select **My Apps**

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

* Make new app by clicking **Create App** button

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

* Then select **Other** and press **Next**

<figure><img src="/files/As0cmVeylreK5ibm6Qr5" alt="" width="563"><figcaption></figcaption></figure>

* Then select **Business** in app type

<figure><img src="/files/t2F80NBEvNjy4v3yqCU6" alt="" width="563"><figcaption></figcaption></figure>

* Enter your app name like i am using **Affiliaters Posting,** you can use any name for this then press **Create App**

<figure><img src="/files/Jxdmw1GAp0M7sgGzg6p8" alt="" width="563"><figcaption></figcaption></figure>

* Now make your app **Live** from **Development**

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

## Generate short time token

This process will help you to get short time token

* Go to Menu **Tools > Graph API Explorer**

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

* Now, you will see a screen where you need to select your newly created app in **Meta App**, just as I am selecting **Affiliate Posting** in the app
* Select **Get User Access Token** in **User or Page**
* Now you need to select these **Permissions**\
  \
  pages\_show\_list\
  pages\_read\_engagement\
  pages\_manage\_metadata\
  pages\_manage\_posts\
  **business\_management**
* Then press **Generate Access Token**

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

* After press Generate access token you will see new window where authorize your app so press **Continue as your name**

<figure><img src="/files/Z2Tqjh6vxuRrhTxAuBuy" alt="" width="408"><figcaption></figcaption></figure>

* Then select **Opt in to all current and future pages** or you can select your any page where you want to post deals. In first option you do not need to generate token for every time you make new page same token can be used for many pages

<figure><img src="/files/XVSirHYjHMtneLk5a0ZT" alt="" width="411"><figcaption></figcaption></figure>

* **Review** your settings and press **Save** and in Next Window press **Got it**. Now you are almost ready for setup

<figure><img src="/files/QLCzw74QZFGV2PMZEUeL" alt="" width="410"><figcaption></figcaption></figure>

* Now you will be able to see token here in **Access token** field just copy this token for long token

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

## Generate long time token

It is time to get your working token from which you will able to use with Affiliaters.

Go to Menu **Tools > Access token debugger**

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

* Select **Access token** tab and Paste your copied **short time token** and press **Debug** button

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

* Now press **Extend Access Token** after debug token

<figure><img src="/files/iK7yOQGc8gWAaLG95sIM" alt="" width="563"><figcaption></figcaption></figure>

* Now this is last where you will get your token. Just copy Green token and add in Affiliaters and [follow steps in Affiliaters](#setup-facebook)

<figure><img src="/files/rfL9KxPURnCiCY1OhIIn" 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.affiliaters.in/social-media/facebook.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.
