> For the complete documentation index, see [llms.txt](https://manuals.dialox.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://manuals.dialox.ai/studio/channels/facebook-messenger.md).

# Facebook Messenger

By connecting a DialoX bot to Facebook Messenger, it is possible to have conversations between Facebook users and your bot. To do this, you need to connect the bot to a Facebook page that you own. As soon as that is set up, the bot will handle the Messenger messages that are sent to it.

## Installation

* In your DialoX bot, go to the bot's settings and the "Connect" tab.
* Click "Facebook Messenger" and click the button to enable it.
* Now you need to log in with Facebook and grant DialoX permission to manage your Facebook pages.
* Click the Facebook page you want to connect to your bot.
* You can now go to Messenger and start chatting with your Facebook page.

## Collaboration between Facebook Pages Inbox and DialoX

It is possible to set up the Facebook Pages Inbox as the primary means of handling user conversations.

To do this, you need to activate the "handover" protocol for your Facebook page. On your Facebook page, go to Page Settings > Messenger Platform > Subscribed Apps. Choose DialoX as the Primary receiver and Pages Inbox as the Secondary receiver, like shown in the screenshot.

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

First connect your DialoX bot to your Facebook page, otherwise you are not able to set it as primary receiver.

DialoX will now still handle all Facebook messages that are sent to it. For conversations that the bot handles will show up in the "Done" tab of the Pages Inbox. As soon as you move them to the "Main" tab, you are taking over the conversation with the user, and the bot does not reply anymore. Only when you mark the conversation "Done" again, the bot will start to reply again.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://manuals.dialox.ai/studio/channels/facebook-messenger.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
