Skip to main content

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

This opens the HookMyApp dashboard.
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

This shows the Pages connected to your workspace, with their ch_xxxxxxxx ids. See Connect a Page for the full flow and what you get back.

Listen for messages

This tells HookMyApp to send your Page’s Messenger messages, comments and post events to your computer while the command is running.
--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 the sender.id (the PSID).
Reply to it:

Set deployed webhook URL

Run this when your receiver is deployed behind a stable public URL.

Next steps