ANALYZE task on, your app needs:pages_messagingpages_read_engagementpages_show_listread_insightsANALYZE task on, your app needs:ANALYZE task on the Pagepages_messagingpages_read_engagementpages_show_listread_insightsGET request to the /<PAGE_ID>/insights endpoint with the metric parameter set to a comma-separated list of metrics you want to view.curl -X GET "https://graph.facebook.com/<LATEST_API_VERSION>/<PAGE_ID>/insights ?metric=page_messages_new_conversations_unique,page_messages_blocked_conversations_unique &access_token=<PAGE_ACCESS_TOKEN>"
{ "data": [ { "name": "page_messages_new_conversations_unique", "period": "day", "values": [ { "value": "42", "end_time": "1665175977" }, ] }, { "name": "page_messages_blocked_conversations_unique", "period": "day", "values": [ { "value": "0", "end_time": "1665175977" }, ] } ], }
period parameter set to total_over_range with the time range defined by the since and until parameters in our API call.curl -i -X GET "https://graph.facebook.com/<LATEST_API_VERSION>/<PAGE_ID>/insights/ ?metric=page_messages_new_conversations_unique &since=<UNIX_TIMESTAMP_START> &until=<UNIX_TIMESTAMP_STOP> &period=total_over_range &access_token=<PAGE_ACCESS_TOKEN>"
{ "data": [ { "name": "page_messages_new_conversations_unique", "period": "total_over_range", "values": [ { "value": 27, "end_time": "1665175977" } ], } ] }
curl -i -X GET "https://graph.facebook.com/<LATEST_API_VERSION>/<PAGE_ID>/insights/ ?metric=recurring_notifications_tokens &since=<UNIX_TIMESTAMP_START> &until=<UNIX_TIMESTAMP_STOP> &period=total_over_range &breakdown=recurring_notifications_topic,recurring_notifications_frequency &access_token=<PAGE_ACCESS_TOKEN>"
{ "data": [ { "name": "recurring_notifications_tokens", "period": "total_over_range", "values": [ { "value": 3, "end_time": "1665175977", "recurring_notifications_topic": "newproducts", "recurring_notifications_frequency": "daily" }, { "value": 15, "end_time": "1665175977", "recurring_notifications_topic": "newproducts", "recurring_notifications_frequency": "weekly" }, { "value": 8, "end_time": "1665175977", "recurring_notifications_topic": "newproducts", "recurring_notifications_frequency": "monthly" }, { "value": 17, "end_time": "1665175977", "recurring_notifications_topic": "10percentsale", "recurring_notifications_frequency": "daily" }, { "value": 14, "end_time": "1665175977", "recurring_notifications_topic": "10percentsale", "recurring_notifications_frequency": "weekly" }, ] } ] }
| Parameter | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
breakdown | Dimensions by which the response is grouped. May be one or more of the following:
| ||||||||||||||||
date_preset |
Relative date range which can be used instead of since and until. May be last_week, last_month, last_quarter, and more.
See more values in the Page Insights guide. | ||||||||||||||||
metric | Required. A comma-separated list of metrics to return | ||||||||||||||||
period | The aggregation provided within the since/until or date_preset range. The total_over_range value gives a single value for the metric over the given date range. May be day, week, month, days_28, or total_over_range. | ||||||||||||||||
since | The start date for the date range during which you wish to view data. Includes data for the date set beginning at 12:00am. Format for the value is YYYY-MM-DD. A value of 2022-01-31 would give the data from January 31, 2022 at 12:00am. | ||||||||||||||||
until | The end date for the date range during which you wish to view data. Excludes data for the date set beginning at 12:00am. Format for the value is YYYY-MM-DD. A value of 2022-02-01 would give the data to January 31, 2022 at 11:59pm. |
metric Name
| Description |
|---|---|
page_messages_blocked_conversations_unique | The number of conversations with the Page that have been blocked. |
page_messages_engagement | The number of times customers interacted with marketing messages sent by your business Page by tapping on a call-to-action button. Possible breakdown Values:
This metric is in development. |
page_messages_new_conversations_unique | The number of messaging conversations on Messenger that began with people who had never messaged with your business before. |
page_messages_order_count | The number of times you created an order in messaging conversations or in third-party apps or websites used to manage messaging conversations.
This metric is in development. |
page_messages_paid_order_earnings | The approximate amount of money you have earned from orders created through messaging conversations or through third-party apps or websites used to manage messaging conversations. Final earnings may differ due to currency conversions.
This metric is in development. |
page_messages_read_ratio | The number of marketing messages read divided by the number of marketing messages sent by your Page. Some message reads may not be captured, such as when a customer has turned off read receipts. Possible breakdown Values:
This metric is in development. |
page_messages_reported_conversations_unique | The number of conversations from your Page that have been reported by people for reasons such as spam, or containing inappropriate content. |
page_messages_sent | The number of marketing messages your business Page sent to customers.
Possible breakdown Values:
This metric is in development. |
page_messages_total_messaging_connections | The number of people your business can send messages to.
This metric shows the number of people who have ever sent a message to your business on Messenger, not including people who have blocked or reported your business on Messenger. There may be some constraints on your ability to send messages to connections, such as limitations on how many messages you can send during certain timeframes. This metric also only includes connections made since October 2016, when data became available. |
page_messages_with_business_outcomes | The number of messaging connections with at least one order created.
This metric is in development. |
recurring_notifications_tokens | The number of times an account has subscribed to receive marketing messages from your business. If an account has subscribed to multiple topics, it will be counted again for each topic.
How it’s calculated: This metric counts the number of times accounts agreed to receive recurring messages minus the number of times accounts unsubscribed. Possible breakdown Values:
This metric is in development. |
| Property | Description |
|---|---|
data array of objects | A list of metrics objects |
namestring | The name of the metric |
periodstring | The time period over which data was reported |
valuesarray of objects | A list of data for a metric. |
valueint | The count for the requested metric during the date range specified |
end_timeunix timestamp | UTC timestamp of the end time for the metric |