Skip to main content

Install

Requires Node.js 20 or newer. The facebook commands need CLI 0.14.24 or newer.

Authenticate

For terminal-only sessions, use hookmyapp login --email <you@example.com>.

Workspaces

A workspace is the tenancy boundary for every other command.
Pick one before you connect channels.

Channels

Connect a Page, then run per-channel operations.
Address a channel by its ID (ch_xxxxxxxx from channels list).
Get the channel token, or check channel health:

Facebook commands

Every command takes --channel <ch_id>, or reads HOOKMYAPP_CHANNEL_ID from the environment. Add --json for machine-readable output. fb is an alias for facebook.

Messages

Inbox

Posts

Comments

Insights and profile

Receive webhooks

There are two ways to tell HookMyApp where to send your Page’s events. For local development, send events to your laptop while the CLI runs:
For a deployed receiver, point Meta at your own public URL:
Use one destination per channel: either channels listen for local testing or a deployed webhook URL. Read the delivery history:

Sandbox

Test Messenger with the HookMyApp sandbox Page and no Page of your own.
See Sandbox for the full flow. Facebook sessions are selected by their ssn_ id.

Customers

Give a customer a link to connect their own Page. See SaaS mode.

Output formats

Add --json to any command for machine-readable output. Errors follow the same envelope with a code field.