如何获取Facebook中视频的观看次数 [英] How to get the number of video's views in facebook

查看:486
本文介绍了如何获取Facebook中视频的观看次数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用facebook graph api首先获取全局视频视图,然后我想尝试单个视图,但是当我尝试这种语法时:

i'm using facebook graph api to get global video views first and then i want to try for individual ones but when i try this syntax:

获取/v2.5/{object-id}/insights/page_video_views?

GET /v2.5/{object-id}/insights/page_video_views?

我得到这个答案:

    {
  "data": [
  ],
  "paging": {
    "previous": "https://graph.facebook.com/v2.5/me/insights/page_video_views?access_token=CAAHqSB13M38BADBeaD95DWV4ECBhy5xdGSR9jASunxK3J6TMwmpZA09wk9FoZAtDpyjIWhPqCbjy1PNy5dPXSMlMI9HE5ZA3m8Kbpq46r8YFauyOluPSYfBlCJJIzZCTEz3tfGoPKZBXMIq4LiTfRCmIggSDLLhsRL03a89JoeOgy15nu1ch71tmU7HU9JcZAsjCvZC4IdBggZDZD&debug=all&format=json&method=get&pretty=0&suppress_http_code=1&since=1458550344&until=1458809544",
    "next": "https://graph.facebook.com/v2.5/me/insights/page_video_views?access_token=CAAHqSB13M38BADBeaD95DWV4ECBhy5xdGSR9jASunxK3J6TMwmpZA09wk9FoZAtDpyjIWhPqCbjy1PNy5dPXSMlMI9HE5ZA3m8Kbpq46r8YFauyOluPSYfBlCJJIzZCTEz3tfGoPKZBXMIq4LiTfRCmIggSDLLhsRL03a89JoeOgy15nu1ch71tmU7HU9JcZAsjCvZC4IdBggZDZD&debug=all&format=json&method=get&pretty=0&suppress_http_code=1&since=1459068744&until=1459327944"
  }
}

知道我拥有所有权限(我是创建页面的人,我给了自己权限,并且我具有access_token).

knowing that i have all the permissions (i'am the one who created the page, i gave myself permissions and i have the access_token).

为什么没有数据,没有关于视图数量的信息?

Why there's no data no information about the number of views ?

推荐答案

您可以改用VIDEO INSIGHTS:

You can try the VIDEO INSIGHTS instead: https://developers.facebook.com/docs/graph-api/reference/video/video_insights

它为您提供所需的统计信息,但仅适用于LIFETIME时期.您不能指定日期范围.

It gives you the stats you need but it's only for LIFETIME period. You can't specify date range unfortunately.

这篇关于如何获取Facebook中视频的观看次数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆