OpenGraph Watch Action不会出现在任何地方

时间:2013-12-04 11:54:12

标签: facebook facebook-graph-api facebook-opengraph

我的网页类型为video.other(带有效的开放图元标记)并尝试发布观看操作。使用Javascript SDK,使用以下代码发布:

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);
        }
});

回复是:

{"id" : "a_fb_id"}

虽然没有错误,但我无法在时间轴或活动日志页面中看到该操作,并且无法使用此网址进行访问:

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

使用网址https://graph.facebook.com/a_fb_id?access_token=MY_ACCESS_TOKEN,我会收到此json数据:

{
    "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"
    }
}

这是我的应用程序的Watch通用操作类型(内置)批准状态: Approval Status

一切似乎都没问题但是没有关于行动的激活。我在哪里做错了?

1 个答案:

答案 0 :(得分:1)

您是否尝试按照文档(https://developers.facebook.com/docs/opengraph/using-actions/#read)中所述的方式访问它:

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

请注意,您需要拥有此处所述的正确的OpenGraph权限(“user_actions.video”),如文档中所述:https://developers.facebook.com/docs/reference/login/open-graph-permissions/