skip to Main Content

I am trying to get facebook page insights using Facebook Graph API, I see some strange numbers in page_cta_clicks_logged_in_total(looks like they are coming in all logged_in metrics)

Following is a sample 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 & 156880401338097

2

Answers


  1. You can check the node type of the id, through facebook graph api:

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

    It gives us hints that the node type is pagecalltoaction, which is Page Call To Action.

    See More: How can I know if a node returned from Facebook Graph API is a profile or a page?

    Login or Signup to reply.
  2. You get these ids with click related metrics (Ex. page_cta_clicks_by_age_gender_logged_in_unique, page_cta_clicks_logged_in_total, page_cta_clicks_logged_in_unique).
    These ids are basically ids of the Page Buttons (look at the following image).

    enter image description here

    You can get the details of the button by doing following API call
    https://graph.facebook.com/470946356598165?access_token=%5Baccess_token%5D

    i see the following response

    {
    "id": "470946356598165",
    "type": "MESSAGE",
    "status": "ACTIVE"
    }
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search