2013-07-13 32 views
0

我正在编写Facebook本机iOS应用程序,并且想要阅读登录用户选择为“观看”的电影。如何将观看的电影阅读到iOS应用程序

我能够得到用户喜欢使用我/电影的电影,但我正确的是,我需要让我/ video.watches获得用户观看的电影?

我试过这个,但它似乎没有得到的信息。我给了我的Facebook应用程序以下权限:user_likes,user_videos,publish_actions,user_actions.video。

是否有可能只获取Facebook的电影的一般列表,而不是用户的个人资料特有的电影?

回答

0

是的你是对的,me/video.watches对于电影应用是app_id_filter=475761232465217的正确呼叫。所需的许可是user_actions.video。您可能希望确保有Facebook的UI

Movies Watched

{ 
    "data": [ 
    { 
     "id": "10101180827703747", 
     "from": { 
     "name": "Philippe Harewood", 
     "id": "13608786" 
     }, 
     "start_time": "2013-05-30T13:01:00+0000", 
     "end_time": "2013-05-30T13:01:00+0000", 
     "publish_time": "2013-05-30T13:01:00+0000", 
     "application": { 
     "name": "Movies", 
     "id": "475761232465217" 
     }, 
     "data": { 
     "movie": { 
      "id": "103744862998017", 
      "url": "https://www.facebook.com/pages/The-Bourne-Identity/103744862998017", 
      "type": "video.movie", 
      "title": "The Bourne Identity" 
     } 
     }, 
     "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" 
     } 
    }, 
    { 
     "id": "10101137804098397", 
     "from": { 
     "name": "Philippe Harewood", 
     "id": "13608786" 
     }, 
     "start_time": "2013-04-15T22:22:26+0000", 
     "end_time": "2013-04-15T22:22:26+0000", 
     "publish_time": "2013-04-15T22:22:26+0000", 
     "application": { 
     "name": "Movies", 
     "id": "475761232465217" 
     }, 
     "data": { 
     "movie": { 
      "id": "151523671552341", 
      "url": "https://www.facebook.com/CasinoRoyaleMovie", 
      "type": "video.movie", 
      "title": "Casino Royale" 
     } 
     }, 
     "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" 
     } 
    } 
    ], 
    "paging": { 
    "next": "https://graph.facebook.com/13608786/video.watches?app_id_filter=475761232465217&limit=25&offset=25&__after_id=10101137804098397" 
    } 
} 
+0

由于上市的实际电影,这已经奏效。我可以使用您提供的应用ID筛选结果。 是否有可能使用Facebook的电影列表作为数据来源,或者只能获得登录用户观看/评级/等的电影? – user2562126

+0

@ user2562126只有登录的用户。 – phwd

相关问题