0

我正在编写一个 Facebook 原生 iOS 应用程序,我想阅读登录用户选择为“已观看”的电影。

我可以使用 me/movies 获得用户喜欢的电影,但是我是否正确,因为我需要让 me/video.watches 获得用户看过的电影?

我已经尝试过了,但它似乎没有得到信息。我已授予我的 Facebook 应用以下权限:user_likes、user_videos、publish_actions、user_actions.video。

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

4

1 回答 1

0

是的,您是对的,对于电影应用程序me/video.watches的正确调用是正确的。app_id_filter=475761232465217所需的权限是 user_actions.video. 您可能希望确保 Facebook UI 中列出了实际的电影

看过的电影

{
  "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"
  }
}
于 2013-07-13T17:06:30.920 回答