Set
recipient_type to group and to to the group id.
Send a message
message to POST /channels/{ch}/messages:
send_message takes the same fields.
A message from any member opens the 24-hour window for the whole group.
Pin a message
Pin a message in the group, or unpin it. A group holds up to 3 pinned messages. Pinning a fourth unpins the oldest.pin.type is pin or unpin. expiration_days is 1 to 30.
Invite people with a template
People join through the invite link, and you send the link in a template.Meta offers a ready-made utility template for this in its Template Library. It takes the group id and fills in the invite link when it is delivered.
1
Create the template from the Template Library
Send
libraryTemplateName instead of components. Copy the template without changes, or it loses its utility pricing.LIBRARY_TEMPLATE_NAME is the name of Meta’s group invite template in its Template Library (utility category). Some library templates also take libraryTemplateButtonInputs.With the CLI, invite.json holds Meta’s field names:2
Wait for approval
Meta can take up to 24 hours. Send only once the template is
APPROVED. See template lifecycle.3
Send it to the person you want in the group
This is a 1:1 template message. The
group_id parameter takes the group id.Incoming group messages
Messages members send in a group reach your webhook like any other message, with the group id added.See group events.