【发布时间】:2017-03-29 18:58:53
【问题描述】:
我正在尝试使用 Graph API Explorer 从洞察部分获取有用的数据。
我尝试了不同的指标和日期,但数据的结果总是为空。
我能够查看我的页面仪表板以了解喜欢的数量并根据它选择一个范围,但我仍然没有看到任何数据。
如果 access_key 有问题,它会返回一个错误说明,还是只返回空结果?
这是一家受欢迎的公司的调试输出,我想这家公司在过去几周内会有新的喜欢。
=== Query
curl -i -X GET \
"https://graph.facebook.com/v2.8/14226545351/insights/page_positive_feedback_by_type?since=1487788679&until=1490812690&access_token=<access token sanitized>"
=== Access Token Info
{
"perms": [
"user_likes",
"manage_pages",
"pages_show_list",
"public_profile"
],
"page_id": 167544343274096,
"user_id": "10152810337959467",
"app_id": 145634995501895
}
=== Parameters
- Query Parameters
{
"since": "1487788679",
"until": "1490812690"
}
- POST Parameters
{}
=== Response
{
"data": [],
"paging": {
"previous": "https://graph.facebook.com/v2.8/14226545351/insights?access_token=<access token sanitized>&pretty=0&since=1484764668&until=1487788679&metric=page_positive_feedback_by_type",
"next": "https://graph.facebook.com/v2.8/14226545351/insights?access_token=<access token sanitized>&pretty=0&since=1490812690&until=1493836701&metric=page_positive_feedback_by_type"
},
"__debug__": {}
}
=== Debug Information from Graph API Explorer
- https://developers.facebook.com/tools/explorer/145634995501895/?method=GET&path=14226545351%2Finsights%2Fpage_positive_feedback_by_type%3Fsince%3D1487788679%26until%3D1490812690&version=v2.8
有人能给出一个实际的工作例子吗?我还没有遇到过。
【问题讨论】:
标签: facebook facebook-graph-api facebook-insights