Messenger Business Calling API |
Messenger Business Calling API aims to bring the VoIP communication channel in addition to text messaging between Messenger consumers and Businesses on Messenger. The consumers would use the Messenger consumer app in a manner similar to the current Consumer to Consumer Calling product. Businesses would however interface with Messenger via GraphAPI and Webhooks for the initial call signaling and connection.
The Calling APIs utilize the same authorization tokens as the rest of the Messenger Platform API. You will need this permission to access the Messenger Calling API:
pages_messagingYou will also need to subscribe to these webhooks:
messagesstandbycall_permission_replycallsAutomatic page allowlisting is available on the API. Businesses will call this API to onboard their pages.
| Property | Description |
|---|---|
| This is the page ID connected to the app |
POST /{PAGE-ID}/messenger_call_settings
{
"audio_enabled": <boolean>,
"call_routing": {
"ring_target": {META/PARTNERS}
}
}
You will either receive success or failure based on whether the request was successful or not.
For a complete explanation of all available parameters, please refer to the Inbound Call Routing section.
Check your page's eligibility based on the Page ID to use the Messenger Calling API.
| Property | Description |
|---|---|
| This is the page ID connected to the app |
| List of features to check. |
| The name of the feature to check |
POST /{PAGE-ID/business_messaging_feature_status
{
"features": [
{
"feature": "messenger_api_calling"
}
]
}| Property | Description |
|---|---|
| The name of the input feature |
|
|
{
"data": [
{
"feature": "messenger_api_calling",
"status": {ENABLED/DISABLED}
}
]
}The following error can happen:
For more details on these errors, visit here.