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

# Installation

How to setup a Facebook Messenger channel in CSML Studio

There are several prerequisites to building a Messenger chatbot, which we will assume are already taken care of. Before we start, please make sure that you already have:

* an active Facebook account
* a Facebook page for your chatbot to be associated with that you are an admin of
* a CSML chatbot ready to go

## 1. Login with facebook

In CSML Studio, visit **Channels > Connect new channel > Messenger**. Click on **Continue with Facebook** to grant permissions to CSML Studio to connect bots to your chosen pages. This starts a standard Facebook login flow:

![Select any page you might want to associate with the bot](https://2862118938-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6OZMoZlXP9VSWYMW_T%2F-M926B1ehEyD_HHos1HW%2F-M938a4BPHIx4szgrVE7%2FCleanShot-2020-06-05-at-08.55.43.gif?alt=media\&token=c4afa202-8fb0-4d08-8b6c-784cf98da177)

After this, simply select the page you want to link to the bot, and wait a few seconds.

Voilà! You can now search for your chatbot in Facebook Messenger (it will be listed under the page's name).

![Search for your chatbot in the search bar. It will appear under the Businesses section.](https://2862118938-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6OZMoZlXP9VSWYMW_T%2Fsync%2Fa756c43d39b482fe0eca96c79ad4cdf01d06eadf.png?generation=1590013354957664\&alt=media)

![](https://2862118938-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6OZMoZlXP9VSWYMW_T%2Fsync%2F9edaddeb86ebee4586fa41a613fa6e81106f0ec3.gif?generation=1590013348057882\&alt=media)
