Facebook Graphics API for videos not returning expected data

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

I use the link above to get the JSON details in PHP for the video object, however I cannot get the required data wrt provided metric

data required: total_video_views

here's the FB for the metric: https://developers.facebook.com/docs/graph-api/reference/video/video_insights/

when i use

?metric=total_video_views

FB api chart gives

    {
  "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"
  }
}

but there is no field relative to the required metric, i.e. total_video_views

Am I doing a wrong request here or something else?

+4
source share
1 answer

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

Should work for you.

+2
source

All Articles