Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenGraph Watch Action Don't Appear Anywhere

I have pages that type's are video.other (with valid open graph meta tags) and try to publish watch action. Using Javascript SDK, publishing with 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);
        }
});

The response is:

{"id" : "a_fb_id"}

Although there is no error, i can't see the action in my timeline or activity log page and can't access with this url:

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

With the url https://graph.facebook.com/a_fb_id?access_token=MY_ACCESS_TOKEN, i get this 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 application's Watch common action type (built-in) approval status: Approval Status

Everything seems ok but there is no activty about the action. Where am I doing wrong?

like image 937
aykut Avatar asked Dec 04 '13 11:12

aykut


1 Answers

Have you tried to access it the following way as stated 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 notice that you'll need to have the right OpenGraph permission as described here ("user_actions.video") as described in the docs as well: https://developers.facebook.com/docs/reference/login/open-graph-permissions/

like image 67
Tobi Avatar answered Nov 18 '22 22:11

Tobi