3

Tried the following endpoints:

https://graph.facebook.com/v2.6/{video-id}/video_insights/total_video_views?access_token={token}

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

But I still getting no data results in both endpoints:

{
   "data": [

   ]
}

And my videos has some views (visualizações):

enter image description here

Thanks in advance.

2 Answers2

0

I'm gonna paste the words from the API documentation below, but I think, since it's a video, you're calling to the wrong site.

"Host URL Almost all requests are passed to the graph.facebook.com host URL. The single exception is video uploads, which use graph-video.facebook.com."

And here's a link to the page: https://developers.facebook.com/docs/graph-api/overview/#structure

0

I had the same problem it's because you don't use the token from the page the video was published.

https://graph.facebook.com/v2.6/{video-id}/video_insights/total_video_views
A. Colonna
  • 852
  • 7
  • 10
  • Hi, without token, returns me the error: { "error": { "message": "An access token is required to request this resource.", "type": "OAuthException", "code": 104, "fbtrace_id": "XXXXX" } } – Thales Chemenian Jun 06 '18 at 10:41
  • There is a difference between a token and a Page Token ! – A. Colonna Jun 06 '18 at 11:44