# Facebook

A integração com o Facebook Messenger permite que o bot criado fique responsável por toda conversa iniciada neste canal. Seja um usuário entrando na sua página do Facebook ou conversando diretamente através do aplicativo do Facebook Messenger.

{% embed url="<https://drive.google.com/file/d/1M7s_5g6mmV7QOrZoTr94zXioN8vOEvmG/view?usp=sharing>" %}

1- Para integrar o bot ao Facebook, acesse o bot que deseja realizar a integração, clique em Canais e depois clique em Facebook Messenger:

![](/files/CkHyGrgIFI8bDl53CnpF)

2- Na Aba conexão, clique em conectar Facebook:

![](/files/0WQ5uhpCg4pr3kXoWVNh)

3- Faça login em sua conta, clique em Editar Configurações, se tiver alguma página do Instagram selecionada, remova a seleção:

&#x20;

![](/files/qG7CB7DNyHZ0YzNyxm3M)

4- Cique em Avançar, selecione a página do Facebook que deseja integrar, clique em Avançar, Concluir e depois em Ok:

![](/files/DN0meCqPnoGRDe9bB9qA)

5- Selecione a página que deseja integrar e clique em Salvar Alterações:

![](/files/NhPMRCTywZJ8C79PZXKK)

{% hint style="info" %}
Quando conectado com sucesso o status da conexão muda para Conectado:
{% endhint %}

![](/files/inxxpN7zAhlyKIS0WqEN)

6- Para testar, é só acessar a página do Facebook que foi integrada, e com outra conta manda um "oi" no Messenger:

![](/files/Q5j9FNADMYiELEDQEvi6)


---

# 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://help.cosmobots.io/help/bot-builder/canais/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.
