如何在 Facebook 中获取视频的观看次数 [英] How to get the number of video's views in 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:
GET/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:https://developers.facebook.com/docs/graph-api/reference/video/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屋!