meta-msg:connect
meta-msg family
Finish a Meta login: trade the code Meta sent back for a long-lived token, list the Pages and Instagram accounts it reaches, seal each token on its own channels connection (messenger: the Page id; instagram: the Instagram account id), and subscribe each account to the webhooks. Inbound for an account with no connection is refused, so this is what turns Meta messages on for a workspace. A state not signed for this workspace is refused. Instagram Login tokens last 60 days and are refreshed before expiresAt. The token is never echoed.
- Effect
- ask
- Awaits an outcome — the call returns the response below.
- Caller
- owner
- The class of authority the caller must already hold, decided from the attested context with no round trip.
- Cost
- free
- What one call costs, so you can budget before acting.
- Reversible
- yes
- The effect can be undone by a later call.
- Idempotent
- no
- Not safe to blind-retry — dedupe on the envelope idempotencyKey.
- Version
- 1.0.0
- Pin this to keep a contract stable; additive bumps never break callers.