META_MESSENGER. It is the only flow with two authorization steps: Facebook OAuth grants access to several pages, and the channel needs exactly one.
Requirements
- A Facebook page (not a personal profile)
- Admin access to the page
- The page linked to a Business Portfolio
Connecting
facebook.com/dialog/oauth with these scopes:
The extra step: picking the page
After the OAuth, if the user administers more than one page, you have to ask which one to link:POST /v1/channels/{channelId}/list-messenger-pages, authenticated with the Public Key. Show the list, let the user pick, and send the chosen pageId along to the connect endpoint.
If the user administers only one page, the SDK already returns
pageId filled in and you can skip this step.What is different on Messenger
Talking outside the window
The replacement is Meta’s pre-approved templates:Utility Template support in Omni Z-API is being implemented. See the comparison of the three template types.