Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook API Video Views

I want to get the views of a video on my Facebook page.

My request:

{object-id}/insights/post_video_views_organic

But instead of data I get the following error back:

{
  "error": {
    "message": "(#100) Tried accessing nonexisting field (insights) on node type (Video)", 
    "type": "OAuthException", 
    "code": 100
  }
}

I haven´t really worked with the Facebook API in the past so I cant really translate this error message. (I am using the Graph API Explorer)

like image 863
mfsymb Avatar asked Aug 30 '14 11:08

mfsymb


1 Answers

Try adding the id of your facebook page (which you can retrieve through the Graph API or here) to the start of the object id, followed by an underscore ('_') then the object id of the video.

like image 157
alexoakley1 Avatar answered Sep 24 '22 21:09

alexoakley1