facebook graph api - Is it possible to get insights (views) from a video posted by a user (and not a page)? -


i have script gets users videos , displays them, however, i'm looking stats video. i'd retrieve views, likes , comments alongside video image.

my research has shown me it's accessable read_insights permissions , /insights/ endpoint. however, failing , documentation can find referring this, talks pages, not users

is possible retrieve insights on users video? if so, can link me docs, (or change example, if prefer @ code)

            function loadalbums()             {                 fb.login(function (response)                 {                     if (response.authresponse)                     {          //logged in , accepted permissions!                          document.getelementbyid("status").innerhtml = "getting album information facebook profile";                         var counter = 0;                         // start normal api                         fb.api('/me/videos', function (response)                         {                             var d = response.data;   (var = 0, l = d.length; < l; i++)                             {                                     // here's i'm trying load individual insights each video. , logging response                         fb.api('/'+response["data"][i].id+'/insights/post_video_views_organic', function (resp)                         {                             var de = resp.data;                             console.log(resp)                         });                                     addoption(response["data"][i].name, response["data"][i].id);                                 counter++;                               }                             document.getelementbyid("status").innerhtml = "there " + counter + " albums in facebook profile";                         });                           //end of  normal api                          document.getelementbyid("albumbtn").style.visibility = "hidden";                        }                 }, {scope: 'read_stream,read_insights,user_photos,user_videos'});               } 

i having same problem :)
i can likes , comments, not quantity likes , not quantity comments.
for example: /{your-post-id}?fields=likes,comments{comment_count,like_count} https://developers.facebook.com/tools/explorer/

if know answer - 'll write you

<-- solved -->

you can't insight views post user because insight uses page , page posts


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -