问题描述
很抱歉,如果措辞和格式设置不正确,我将不参加训练营。
我的应用程序使用以下端点在Facebook用户页面上查询分析数据:
{page_id} / insights /?since = 08/01/2020&until = 08/07/2020&metric = page_engaged_users
我收到的数据是:
{
"data":[
{
"name":"page_engaged_users","period":"day","values":[
{
"value":0,"end_time":"2020-08-02T07:00:00+0000"
},{
"value":0,"end_time":"2020-08-03T07:00:00+0000"
},"end_time":"2020-08-04T07:00:00+0000"
},"end_time":"2020-08-05T07:00:00+0000"
},"end_time":"2020-08-06T07:00:00+0000"
}
],"title":"Daily Page Engaged Users","description":"Daily: The number of people who engaged with your Page. Engagement includes any click or story created. (Unique Users)","id":"137088133587412/insights/page_engaged_users/day"
},{
"name":"page_engaged_users","period":"week","title":"Weekly Page Engaged Users","description":"Weekly: The number of people who engaged with your Page. Engagement includes any click or story created. (Unique Users)","id":"137088133587412/insights/page_engaged_users/week"
},"period":"days_28","title":"28 Days Page Engaged Users","description":"28 Days: The number of people who engaged with your Page. Engagement includes any click or story created. (Unique Users)","id":"137088133587412/insights/page_engaged_users/days_28"
}
],"paging":{
"prevIoUs":"https://graph.facebook.com/v8.0/137088133587412/insights?access_token=EAAKPk7foIPMBAGtZCNNZBPVXyOZA6zzLV4Ni7YagWXDJ2dKpzWWiasedbVMKeFBBfB1W5tm2OH7zTMJhJe6IqDkhxNq6MhYfehB8ZC3Uem5QqLWKYFAQt8s97pZBgQTpRXCiz2BZBZCtecMOnwEzJhzcAmcBzQpjX5J9FQlvM6QfDO46Jz6MbDCLZBB10osuiInywsJsTb2jZCwZDZD&pretty=1&since=1595833200&until=1596265200&metric=page_engaged_users","next":"https://graph.facebook.com/v8.0/137088133587412/insights?access_token=EAAKPk7foIPMBAGtZCNNZBPVXyOZA6zzLV4Ni7YagWXDJ2dKpzWWiasedbVMKeFBBfB1W5tm2OH7zTMJhJe6IqDkhxNq6MhYfehB8ZC3Uem5QqLWKYFAQt8s97pZBgQTpRXCiz2BZBZCtecMOnwEzJhzcAmcBzQpjX5J9FQlvM6QfDO46Jz6MbDCLZBB10osuiInywsJsTb2jZCwZDZD&pretty=1&since=1596697200&until=1597129200&metric=page_engaged_users"
}
}
值全为零,因为页面没有像我一样的任何视图 测试。
出于某种原因,数据会以3个单独的对象(天,周)返回 &28_days),不确定当我给它一个范围时为什么会这样返回 但这不是眼前的主要问题。
我对返回的数据的理解是,对于第一个值,该数据是针对08/01/2020(8月1日,星期六),由“ end_time”表示,该值设置为08/02的开始/ 2020(8月2日开始,午夜00:00)。
返回的数据仅包含5个结果,范围为2020年8月1日至2020年5月5日(8月1日星期六至8月5日星期四)。
我可以理解它是否仅包含6天(给定7天范围),因为它可能以第7天为终点,但是它在第5天停止,不用说我非常困惑。
为什么我没有7天的数据或至少6天的数据?
我在这里显然不了解基本概念。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)