> ## Documentation Index
> Fetch the complete documentation index at: https://docs.molin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Facebook Messenger

> Connect your Facebook Page so Molin AI can automatically respond to Messenger conversations.

export function OpenChatLink({message, autoSend = false, children}) {
  const handleClick = () => {
    window.Molin?.openChat?.({
      message,
      autoSend
    });
  };
  return <button type="button" onClick={handleClick} className="cursor-pointer text-[#601FEB] underline hover:text-[#8624FF]">
      {children}
    </button>;
}

Connect your Facebook Page to Molin so your AI chatbot can automatically respond to Facebook Messenger conversations. Your customers get instant replies, and you can monitor all conversations from the [Inbox](https://molin.ai/app/inbox).

<Note>The Facebook Messenger integration is available on the **Startup** plan and above.</Note>

## Prerequisites

Before connecting, make sure you have:

* A **Facebook Page** for your business
* Admin access to the Facebook Page you want to connect
* A Molin AI widget on the **Startup** plan or higher

## Connect your Facebook Page

1. Open the [Integrations](https://molin.ai/app/integrations#facebook-messenger) page and expand the **Facebook Messenger** section
2. Click **Authorize page access**
3. You will be redirected to Facebook to authorize Molin AI
4. Select the Facebook Pages you want to make available, then confirm the permissions
5. After authorization, you will be redirected back to the dashboard
6. Use the dropdown to select which Facebook Page to connect
7. Click **Save**

<Tip>If you manage multiple Facebook Pages, you can authorize all of them at once. Only the page you select in the dropdown will be actively connected to Molin.</Tip>

## How it works

Once connected:

* When a customer sends a message to your Facebook Page via Messenger, Molin AI automatically responds using the same AI and instructions that power your web widget
* All Messenger conversations appear in your [Inbox](https://molin.ai/app/inbox) alongside web chat and other channels
* If live chat is enabled, your support agents can take over Messenger conversations at any time

## Change the connected page

1. Open the [Integrations](https://molin.ai/app/integrations#facebook-messenger) page and expand the **Facebook Messenger** section
2. Select a different page from the dropdown
3. Click **Save**

If the page you want is not in the dropdown, click **Can't find your page? Authorize again** to re-run the authorization flow and grant access to additional pages.

## Disconnect your page

1. Open the [Integrations](https://molin.ai/app/integrations#facebook-messenger) page and expand the **Facebook Messenger** section
2. Clear the page selection in the dropdown (select nothing)
3. Click **Save**

After disconnecting, Molin will stop responding to Messenger conversations on that page.

## Troubleshooting

### My page doesn't appear in the dropdown

* Click **Can't find your page? Authorize again** to re-authorize with Facebook
* Make sure you have **Admin** access to the page
* During the Facebook authorization flow, ensure you select the page you want to connect

### Messages are not being received

* Check that the correct page is selected and saved on the [Integrations](https://molin.ai/app/integrations#facebook-messenger) page
* Try disconnecting and reconnecting the page to refresh the authorization
* Ensure you have not revoked Molin's access in your [Facebook Business settings](https://business.facebook.com/settings/)

If you need further help, please contact us <OpenChatLink message="I need help with the Facebook Messenger integration." autoSend={true}>here</OpenChatLink>.
