How to connect a Facebook page (Messenger) through your own Meta app: the app ID and secret, a page token; verification and the webhook happen automatically.
This is messaging with a Facebook page through Messenger. It connects through your own Meta app, the same way WhatsApp Business does: the app and the page are yours, and Lalexi only receives and sends the messages. The app follows Meta's rules on your behalf, and Meta's decisions concern your app alone.
You cannot write first: Meta lets you reply to people who wrote themselves, within 24 hours of their last message.
What to prepare
All of this happens on Meta's side, before you open Lalexi:
- A Facebook page you are an admin of.
- An app in Meta for Developers (developers.facebook.com): My Apps → Create App, type Business, linked to your business portfolio. Add the Messenger product to it.
- The app ID and secret — on the app's App settings → Basic page: App ID and App Secret. Set the privacy policy URL there too, and switch the app to Live mode.
- A page token: Messenger → Messenger API Settings → Generate access
tokens — connect the page and press Generate. The token needs
pages_messagingandpages_manage_metadata. It must be a page token that does not expire, not a temporary user token: Lalexi checks this when you connect and tells you if something is off.
A workspace administrator connects it — see Team.
How to connect
-
Open Settings → Inboxes and press Add Inbox.
-
Choose Facebook.
-
Fill in the form:
Field What to enter Inbox name Optional. Left empty, the page's name is used. App ID The App ID, digits only. App secret The App Secret. Page access token The token from step 4 above. -
Press Connect. Lalexi asks Meta whether the token is alive, issued by this app and belongs to a page, registers our webhook in your app and subscribes the page to it. You do not set the webhook up by hand.
-
Add the inbox's agents, as with any standard inbox.
When the credentials stop working
A token can be revoked and an app secret reset. The inbox settings then show a warning. Open the Meta app tab, paste the new values under Replace credentials and save: the inbox and all its conversations stay.
If something goes wrong
| Message | What to do |
|---|---|
| Meta rejected the app ID or the app secret | Check the App ID and App Secret on App settings → Basic. |
| The token was issued by a different app | Generate the page token in the same app whose ID you enter. |
| This is not a page access token | Use a page token from Messenger API Settings, not a user token. |
| The token lacks permissions | Grant pages_messaging and pages_manage_metadata and generate the token again. |
| Already connected in another workspace | A page can live in one Lalexi workspace only. |
| Customers' messages do not arrive | Check the app is in Live mode. If only people with a role in the app get through, Meta requires App Review for pages_messaging. |
The Viber application via Infobip
The whole path to a Viber bot through a Rakuten Viber partner: signing up for the Infobip portal, the channel application, the bot form and the warranty letter, review times, and the token from the Viber app.
How to connect a professional Instagram account through your own Meta app: the Instagram app ID and secret, an Instagram token, and the webhook in Meta's App Dashboard.