OpenGraph Watch action doesn't appear anywhere

I have pages like video.other (with valid meta tags for open graphs) and try to post the clock action. Using the Javascript SDK publishing using this code:

 FB.api('/me/video.watches', 'POST', { video: 'my_video_url_is_here', 'fb:explicitly_shared' : true }, function(response) { if (!response || response.error) { console.log(response.error); } else { console.log(response); } }); 

Answer:

 {"id" : "a_fb_id"} 

Although there is no error, I cannot see the action on my time page or activity log page and cannot access using this URL:

 https://www.facebook.com/me/activity/a_fb_id 

With url https://graph.facebook.com/a_fb_id?access_token=MY_ACCESS_TOKEN I get json data:

 { "id": "a_fb_id", "from": { "name": "MY_NAME", "id": "MY_FACEBOOK_ID" }, "start_time": "2013-12-04T09:50:58+0000", "end_time": "2013-12-04T09:50:58+0000", "publish_time": "2013-12-04T09:50:58+0000", "application": { "name": "MY_APP_NAME", "namespace": "MY_APP_NAMESPACE", "id": "MY_APP_ID" }, "data": { "video": { "id": "video_fb_og_id", "url": "MY_VIDEO_URL", "type": "video.other", "title": "MY_VIDEO_TITLE" } }, "type": "video.watches", "no_feed_story": false, "likes": { "count": 0, "can_like": true, "user_likes": false }, "comments": { "count": 0, "can_comment": true, "comment_order": "chronological" } } 

This is my Watch app approved action status (built-in): Approval Status

Everything looks fine, but there is no activity in action. Where am I doing wrong?

+6
source share
1 answer

You tried to access it as follows, as indicated in the docs ( https://developers.facebook.com/docs/opengraph/using-actions/#read ):

 https://graph.facebook.com/me/video.watches?access_token=YOUR_ACCESS_TOKEN 

Please note that you need to have the correct OpenGraph permission, as described here ("user_actions.video"), as described in the docs: https://developers.facebook.com/docs/reference/login/open-graph-permissions/

+1
source

Source: https://habr.com/ru/post/959319/


All Articles