> For the complete documentation index, see [llms.txt](https://guide.tiledesk.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.tiledesk.com/other-integrations/how-to-integrate-facebook-messenger-with-tiledesk.md).

# How to integrate Facebook Messenger with Tiledesk

Within Tiledesk, you can manage your page messages and chats with our seamless integration with Facebook -messenger. Here's both a video guide and a written step-by-step tutorial.

{% embed url="<https://www.youtube.com/watch?v=unQQ0i_QTXA>" %}

### ***Step 1. Configure your Facebook*** <a href="#step-1-configure-your-facebook" id="step-1-configure-your-facebook"></a>

First login into the Tiledesk Dashboard, then click “Apps” in the left menu and click **Install** on the Facebook icon.

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2F20b34TcC85tH2k9Rl5of%2F2jlbnm-image.png?alt=media&amp;token=f136cafb-5dcb-4563-bd86-c02e94fd48a1" alt=""><figcaption></figcaption></figure>

You will then be redirected to Facebook to enter your email and password.

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FhfqBVRveKDimYX6pgvIZ%2Fimages.png?alt=media&amp;token=ad0e64a1-e263-47a2-8e84-8280239d4c04" alt=""><figcaption></figcaption></figure>

Facebook changed their user policies recently, while logged in, you will need to give Facebook permission to send page messages. This integration will not work without this permission.

From there, you can also add all Facebook Pages that you want your Webhook to receive events for when people on Facebook Messenger chat with it.

For that, please follow the instructions below:

Add/reconnect Facebook Pages again and click allow/yes to all permissions.

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FpMDMuX0N2narPLT968Bz%2Fimages%20(1).png?alt=media&amp;token=1ed09776-5b33-4214-af94-1d365aeaedaa" alt=""><figcaption></figcaption></figure>

Give Tiledesk permission to access data.

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2Fmv9mIzJO79iSAsTgLceA%2Fimages%20(6).jpeg?alt=media&amp;token=089af8dd-901a-4a0c-82af-652ce3d081ac" alt=""><figcaption></figcaption></figure>

Once completed, you will see a confirmation page. &#x20;

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FxcohlNA26OSxB68MHLG4%2Fimages%20(2).png?alt=media&amp;token=5a796b8d-c7a7-445c-b3a4-8f71b2aa4837" alt=""><figcaption></figcaption></figure>

### ***Step 2. Page Subscribed*** <a href="#step-2-page-subscribed" id="step-2-page-subscribed"></a>

Go back to the Tiledesk Dashboard, Apps section and select the FB page you'd like to connect. If you haven’t created any pages on FB, then please do so to be able to complete this final step. Your selected page will have a green tick. You can also select the department connected to your FB Bot or simply leave it as default.

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FQrXHbXGPaLHjiiUrFNgu%2F2jlbij-image.png?alt=media&amp;token=56ed161e-63b8-4d24-b130-210dd372e9ec" alt=""><figcaption></figcaption></figure>

### ***Step 3. Send a message from your page to test it*** <a href="#step-3-send-a-message-from-your-page-to-test-it" id="step-3-send-a-message-from-your-page-to-test-it"></a>

Now open your subscribed page ex: Tiledesk portal and send a text message from there.

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FpAyp0Tqb5CRemKFy5vc8%2Fimages%20(7).jpeg?alt=media&amp;token=5d523160-69e8-4f4b-853d-cffa4e600d2b" alt=""><figcaption></figcaption></figure>

After that, go to the Tiledesk dashboard and check your chats.

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FXcHTy9UGfpsuWK4VzMW2%2Fimages%20(8).jpeg?alt=media&amp;token=de483e50-378d-4171-a746-8d72138c499f" alt=""><figcaption></figcaption></figure>

You're all set!&#x20;

If you have any questions or need further help, just give us a shout via our live chat!


---

# 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://guide.tiledesk.com/other-integrations/how-to-integrate-facebook-messenger-with-tiledesk.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.
