What you will have
Your Page’s Messenger messages arrive at your laptop.You reply from the terminal, with your Page.
Install and authenticate
Connect a Page
Click Connect Channel, then Facebook, sign in, and pick the Page.
The CLI waits and prints the new channel when the Page is connected. A Page with a linked Instagram account also connects that account as its own channel.
List channels
ch_xxxxxxxx ids.
See Connect a Page for the full flow and what you get back.
Listen for messages
--path /webhook/facebook is the route in your local app that receives them.Stop the CLI with Ctrl-C when you are done.
Send a message
Message your Page from your personal Facebook account. The webhook carries thesender.id (the PSID).Reply to it:
Set deployed webhook URL
Next steps
- Send messages: Text, attachments and the 24-hour window.
- Receive webhooks: Verify the signature and acknowledge fast.
- Publish: Post to the Page from your app.