Facebook Graph API Insights values discrepancy -
i using graph api data facebook found strange depending on period chosen values don't make sense me.
the request
/insights/page_impressions_unique?since=1432191600&until=1433401200
returns following values:
"name": "page_impressions_unique", "period": "day", "values": [ { "value": 2, "end_time": "2015-05-22t07:00:00+0000" }, { "value": 8, "end_time": "2015-05-23t07:00:00+0000" }, { "value": 4, "end_time": "2015-05-24t07:00:00+0000" }, { "value": 2, "end_time": "2015-05-25t07:00:00+0000" }, { "value": 0, "end_time": "2015-05-26t07:00:00+0000" }, { "value": 2, "end_time": "2015-05-27t07:00:00+0000" }, { "value": 10, "end_time": "2015-05-28t07:00:00+0000" }, { "value": 14, "end_time": "2015-05-29t07:00:00+0000" }, { "value": 4, "end_time": "2015-05-30t07:00:00+0000" }, { "value": 1, "end_time": "2015-05-31t07:00:00+0000" }, { "value": 1, "end_time": "2015-06-01t07:00:00+0000" }, { "value": 3, "end_time": "2015-06-02t07:00:00+0000" }, { "value": 108, "end_time": "2015-06-03t07:00:00+0000" }, { "value": 17, "end_time": "2015-06-04t07:00:00+0000" } ], "title": "daily total reach", "description": "daily: number of people have seen content associated page. (unique users)" }, { "name": "page_impressions_unique", "period": "week", "values": [ { "value": 110, "end_time": "2015-05-22t07:00:00+0000" }, { "value": 114, "end_time": "2015-05-23t07:00:00+0000" }, { "value": 116, "end_time": "2015-05-24t07:00:00+0000" }, { "value": 116, "end_time": "2015-05-25t07:00:00+0000" }, { "value": 69, "end_time": "2015-05-26t07:00:00+0000" }, { "value": 16, "end_time": "2015-05-27t07:00:00+0000" }, { "value": 20, "end_time": "2015-05-28t07:00:00+0000" }, { "value": 29, "end_time": "2015-05-29t07:00:00+0000" }, { "value": 27, "end_time": "2015-05-30t07:00:00+0000" }, { "value": 24, "end_time": "2015-05-31t07:00:00+0000" }, { "value": 23, "end_time": "2015-06-01t07:00:00+0000" }, { "value": 23, "end_time": "2015-06-02t07:00:00+0000" }, { "value": 125, "end_time": "2015-06-03t07:00:00+0000" }, { "value": 131, "end_time": "2015-06-04t07:00:00+0000" } ],
i know "period": "week" values sum of 7 days prior end_time, can't values adding days in "period": "day" .
tl;dr: know how week values adding day values?
this because when ask week gives weekly data means, "end_time": "2015-05-22t07:00:00+0000"
data last 7 days i.e. consist data of "2015-05-16t07:00:00+0000"
"2015-05-22t07:00:00+0000"
, "end_time": "2015-05-23t07:00:00+0000"
data last 7 days i.e. consist data of "2015-05-17t07:00:00+0000" "2015-05-23t07:00:00+0000"
.
if sum values day period between range can value greater or equal value return weekly data due unique in last 7 day.
you can try
/insights/page_impressions_unique?since=1432191600&until=1432364400
then weekly data since "2015-05-21t07:00:00+0000" & until "2015-05-23t07:00:00+0000"
, date range 2 days data weekly data well.
above information valid facebook team, got answer facebook developers. had conversation facebook team regarding same problem had in our application.
Comments
Post a Comment