The Messenger Profile for your Page is where you set properties that define various aspects of the following Messenger Platform features. For more information, see the Messenger Profile Properties table below.
The Messenger Profile API allows you to set, update, retrieve, and delete properties from the Page Messenger Profile.
A page access token with pages_messaging
permission is required to interact with this endpoint.
Apps in Development Mode, the Messenger Profile settings will only be visible to people with role on the app.
https://graph.facebook.com/v21.0
/me/messenger_profile?access_token=<PAGE_ACCESS_TOKEN>
The following properties may be included in the Messenger profile for your Page. See descriptions in the table below for the type and purpose of each property.
Property | Type | Description |
---|---|---|
| Object | The payload that will be sent as a For more, see Get Started Button Reference. |
| Array<Object> | An array of locale-specific greeting messages to display on your Page Messenger welcome screen. For more, see Greeting Text Reference. |
| Array<Object> | An array with an ice breaker object. For more, see Ice Breakers Reference. |
| Array<Object> | An array of call-to-action buttons to include in the persistent menu. For more, see Persistent Menu Reference. |
| Array<String> | A list of whitelisted domains. Required for Pages that use the Messenger Extensions SDK and the checkbox plugin. For more, see Domain Whitelisitng Reference. |
| String | Authentication callback URL. Must use https protocol. For more, see Account Linking URL Reference. |
| Object | The URL that will be displayed in the Messenger webview when someone opens your Messenger Chat Plugin. Deprecated for all operations ( |
| Array<Object> | Optional argument. If provided, it cannot be null. For more, see Commands Reference. |
| Object | A set of criteria that determines the audience that your Messenger will appear for in the Discover Tab. For more, see Target Audience Settings Reference. |
| Boolean | A boolean flag that determines whether the page is impacted by the Messenger API Updates for Europe. This property is only available for |
Retrieves the current value of one or more Messenger Profile properties by name.
The following parameters are included in the query string of the request:
Parameter | Description |
---|---|
fields | A comma-separated list of Messenger Profile properties to retrieve. |
curl -X GET "https://graph.facebook.com/v21.0
/me/messenger_profile?fields=whitelisted_domains,greeting&access_token=<PAGE_ACCESS_TOKEN>"
The current value of the requested properties will be returned in the data
array:
{
"data": [
{
"whitelisted_domains": [
"https://facebook.com/"
],
"greeting": [
{
"locale": "default",
"text": "Hello!"
},
{
"locale": "en_US",
"text": "Timeless apparel for the masses."
}
]
}
]
}
Sets the values of one or more Messenger Profile properties. Only properties set in the request body will be overwritten.
curl -X POST -H "Content-Type: application/json" -d '{
"<PROPERTY_NAME>": "<NEW_PROPERTY_VALUE>",
"<PROPERTY_NAME>": "<NEW_PROPERTY_VALUE>",
...
}' "https://graph.facebook.com/v21.0
/me/messenger_profile?access_token=<PAGE_ACCESS_TOKEN>"
{ "result": "success" }
Deletes one or more Messenger Profile properties. Only properties specified in the fields
array will be deleted.
curl -X DELETE -H "Content-Type: application/json" -d '{
"fields": [
"<PROPERTY_NAME>",
"<PROPERTY_NAME>",
"<PROPERTY_NAME>",
...
]
}' "https://graph.facebook.com/v21.0
/me/messenger_profile?access_token=<PAGE_ACCESS_TOKEN>"
{ "result": "success" }
Messenger 프로필 API에 대한 호출은 10분당 API 호출 10회로 제한됩니다. 이 사용 제한은 페이지별로 적용됩니다.