https://graph.facebook.com/v2.6/{video_id}/video_insights?metric=total_video_views&access_token={token}
我使用上面的链接来获取PHP中的JSON详细信息视频对象,但是我无法获得所需的数据w.r.t.提供的指标
所需数据:total_video_views
这是指标的FB:
https://developers.facebook.com/docs/graph-api/reference/video/video_insights/
当我使用
?metric=total_video_views
FB图api给出
{
"data": [
],
"paging": {
"previous": "https://graph.facebook.com/v2.6/1034830076599589/video_insights?access_token=EAACEdEose0cBABRiFOqQuZBZBaKTZBW89XcMrTjakJseF76YjL2Hfj1rBRES2FAztFNMQWsMVdv9zwO90ISjx8efBVdfLZCyZBnHzDF5pTLNTgJPIH6PcBnb1YAD5XCWyvK6HIz3rHNP3xs3DfODSbUZCKZC2GkbkzYj7goFgfWVAZDZD&debug=all&format=json&method=get&metric=total_video_views&pretty=0&suppress_http_code=1&since=-86400&until=0",
"next": "https://graph.facebook.com/v2.6/1034830076599589/video_insights?access_token=EAACEdEose0cBABRiFOqQuZBZBaKTZBW89XcMrTjakJseF76YjL2Hfj1rBRES2FAztFNMQWsMVdv9zwO90ISjx8efBVdfLZCyZBnHzDF5pTLNTgJPIH6PcBnb1YAD5XCWyvK6HIz3rHNP3xs3DfODSbUZCKZC2GkbkzYj7goFgfWVAZDZD&debug=all&format=json&method=get&metric=total_video_views&pretty=0&suppress_http_code=1&since=0&until=86400"
}
}
但是没有关于所需度量的字段,即total_video_views
我在这里提出了一些错误的要求或其他什么?
最佳答案 https://graph.facebook.com/v2.6/{video_id}/video_insights/total_video_views\u0026amp;access_token={token}
应该适合你.