2016-07-03 84 views
4
https://graph.facebook.com/v2.6/{video_id}/video_insights?metric=total_video_views&access_token={token} 

我正在使用上面的鏈接來獲取視頻對象的PHP中的JSON細節,但是我無法獲得所需的數據w.r.t.需要提供的度量Facebook圖形API用於視頻不返回預期數據

數據: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

我在這裏做一些錯誤的請求或其他東西?

+1

同樣的問題.... –

回答

2

https://graph.facebook.com/v2.6/{video_id}/video_insights/total_video_views&access_token={token}

應該爲你工作。