---
title: "FlutterFlow Facebook Messenger integration · Spaces"
description: "Connect Facebook Messenger to an app built with FlutterFlow: read chats and reply through one API, with a prompt to paste and no developer app or review."
url: https://www.spacesos.com/build-with/flutterflow/messenger
---

# Connect Facebook Messenger to your FlutterFlow app

FlutterFlow builds native and web apps in Flutter. With Spaces, that app reads your Facebook Messenger chats and replies through one API, without a developer app or a review by Facebook Messenger. You keep using the account you already have.

[Get a free API key](https://www.spacesos.com/signup) See the setup

**FlutterFlow**

**Facebook Messenger**

## What your FlutterFlow app can do on Facebook Messenger

### Page inbox

Answer the people who message your Facebook Page, as your Page.

### Replies with media

Send text, photos, videos, voice notes and files, and fetch the ones people send.

### Page posts and comments

Publish Page posts, and read, answer, like or delete the comments under them.

### Events

Webhooks for new messages, reactions, reads and first messages.

## Four steps

1. ### Get a Spaces key
  Sign up free and create an API key in Settings, under Developers.
2. ### Connect Facebook Messenger
  You sign in to Facebook through a Spaces link, and tick the Pages you want when you connect, so the app can answer as each Page.
3. ### Add the key to FlutterFlow
  Save it in the private API call settings or Cloud Function secrets.
4. ### Add the calls
  Add the Spaces calls below in FlutterFlow, then use them in your pages and workflows.

**Keep the key off people’s devices.** A call that is not private runs on the phone, so the key ships in the app. Private calls need Firebase; with Supabase, call Spaces from an edge function.

## Set up Facebook Messenger in FlutterFlow

For an app that answers your own Facebook Messenger.

```
In FlutterFlow: a private API call (run as a Firebase Cloud Function) or a custom Cloud Function.

Base URL:  https://api.spacesos.com/v1
Header:    Authorization: Bearer <your Spaces API key>   (keep it in the private API call settings or Cloud Function secrets)

Calls to add:
  Facebook Messenger accounts  GET  /messaging/accounts?channel=messenger
  List chats         GET  /messaging/accounts/{account_id}/chats
  List messages      GET  /messaging/accounts/{account_id}/chats/{chat_id}/messages
  Send a reply       POST /messaging/accounts/{account_id}/chats/{chat_id}/messages
                     body {"text": "..."}, header Idempotency-Key: a new value for each message

Over a limit Spaces answers 429 with retry_after_seconds: wait, then try again.
Full reference: https://www.spacesos.com/docs
```

Turn on Make Private for every Spaces call.

## Let FlutterFlow look at your real Facebook Messenger chats

To give it only the Facebook Messenger tools, use this address instead of the main one: `https://api.spacesos.com/mcp/messenger`

## Apps people build with Facebook Messenger

### A local business inbox

Opening hours, prices and bookings answered on the Page, day and night.

### A comment responder

Questions under ads and posts answered as the Page, with the link people asked for.

### A support desk for Pages

Every Page message in one queue, with an AI draft for each answer.

Are you open on Sunday?

Yes, from 10am to 4pm. Would you like to book a table?

Yes, for 4 at 1pm.

Done: Sunday at 1pm for 4.

## Limits that keep the account safe

| New messages a day | 50 |
| --- | --- |
| Replies to people who wrote in, a day | 150 |
| New conversations a day | 8 |
| Gap between two sends | 20 seconds |

For each account after warm-up. New accounts start lower and warm up over four weeks. [Every limit, per channel](https://www.spacesos.com/limits)

Messenger in Spaces is for Facebook Pages and the account you sign in with. Private replies from a comment are not available yet.

## Your users’ Facebook Messenger accounts

Building a product where each user connects their own Facebook Messenger? That needs a partner account, in early access. [Spaces for SaaS](https://www.spacesos.com/saas) · [Partner setup for FlutterFlow](https://www.spacesos.com/build-with/flutterflow)

06

## Questions

**Still have a question?** Ask your AI agent: it can read our docs. Or browse every answer.[All answers](https://www.spacesos.com/answers)

### Can a FlutterFlow app send and receive Facebook Messenger messages?

Yes, through Spaces. The app calls the Spaces API from a private API call (run as a Firebase Cloud Function) or a custom Cloud Function, and Spaces reads and sends on the Facebook Messenger accounts connected to it.

### How do I connect Facebook Messenger?

You sign in to Facebook through a Spaces link, and tick the Pages you want when you connect, so the app can answer as each Page. There is no developer app or app review to pass.

### Where does the API key go?

In the private API call settings or Cloud Function secrets. Call Spaces only from a private API call (run as a Firebase Cloud Function) or a custom Cloud Function, never from code that runs in the browser.

### Can my app’s users connect their own Facebook Messenger?

Yes, with a partner account: each user connects through a link that shows your app’s name and gets a key of their own. Partner accounts are in early access; see Spaces for SaaS.

### What does it cost?

The Free plan has 1 connected account and 20 actions a day, with no card, which is enough to build and test. Pay as you go is $19 a month per account with 200 actions per account a day, then $0.005 an action. Reading messages is always free.

### Will my Facebook Messenger account get restricted?

Messenger in Spaces is for Facebook Pages and the account you sign in with. Private replies from a comment are not available yet. New accounts warm up over four weeks, and repeated messages to many people wait for you to approve them. No tool can promise a platform will never restrict an account.

Other channels in FlutterFlow: [WhatsApp](https://www.spacesos.com/build-with/flutterflow/whatsapp) · [Instagram](https://www.spacesos.com/build-with/flutterflow/instagram) · [LinkedIn](https://www.spacesos.com/build-with/flutterflow/linkedin) · [Telegram](https://www.spacesos.com/build-with/flutterflow/telegram) · [Facebook Messenger in Spaces](https://www.spacesos.com/channels/facebook)

Facebook Messenger with another builder: [Bubble](https://www.spacesos.com/build-with/bubble/messenger) · [Glide](https://www.spacesos.com/build-with/glide/messenger) · [Softr](https://www.spacesos.com/build-with/softr/messenger) · [WeWeb](https://www.spacesos.com/build-with/weweb/messenger) · [Xano](https://www.spacesos.com/build-with/xano/messenger) · [Retool](https://www.spacesos.com/build-with/retool/messenger) · [Appsmith](https://www.spacesos.com/build-with/appsmith/messenger) · [Budibase](https://www.spacesos.com/build-with/budibase/messenger) · [All 49 builders](https://www.spacesos.com/build-with)

Live in under 60 seconds

## Your FlutterFlow app, answering Facebook Messenger.

Start free with one account and 20 actions a day. No card needed.

For you[Start free, live in 60 seconds](https://app.spacesos.com/signup) No card needed. Connect WhatsApp, Instagram, LinkedIn or Messenger.

For your AI agent

`Set up Spaces for me by following https://www.spacesos.com/agents`

Paste it into Grok, Muse, Claude or ChatGPT. Your agent does the rest.
