Getting Two Strange Numbers on Facebook Page Insights

I'm trying to get information on a Facebook page using the Facebook API, I see some weird numbers in page_cta_clicks_logged_in_total (it looks like they are included in all logged_in metrics)

Below is an example of Insight data from Facebook

{ "name": "page_cta_clicks_logged_in_total", "period": "day", "values": [ { "value": { "470946356598165": 0, "156880401338097": 0 }, "end_time": "2017-12-13T08:00:00+0000" }, { "value": { "470946356598165": 0, "156880401338097": 2 }, "end_time": "2017-12-14T08:00:00+0000" } ], "title": "Daily Total CTA click count per Page", "description": "Daily: Total CTA click count per Page", "id": "<page_id>/insights/page_cta_clicks_logged_in_total/day" } 

what are the numbers 470946356598165 and 156880401338097

+5
source share
2 answers

You get these identifiers with click-related tags (e.g. page_cta_clicks_by_age_gender_logged_in_unique, page_cta_clicks_logged_in_total, page_cta_clicks_logged_in_unique). These identifiers are basically the identifiers of the page buttons (see the following image).

enter image description here

You can get the button information by executing the following API call https://graph.facebook.com/470946356598165?access_token=[access_token]

I see the following answer

 { "id": "470946356598165", "type": "MESSAGE", "status": "ACTIVE" } 
+2
source

You can check the type of node identifier via facebook graph api:

 https://graph.facebook.com/470946356598165?metadata=1 https://graph.facebook.com/156880401338097?metadata=1 // response: { "id": "470946356598165", ... "metadata": { "fields": [ ... ], "type": "pagecalltoaction" }, } 

He gives us clues that the type of node is pagecalltoaction , which is Page Call to Action .

More: How do I know if a node is returning from the Facebook Graph API - is it a profile or page?

0
source

Source: https://habr.com/ru/post/1274061/


All Articles