我希望通过open api从facebook收件箱中检索信息但是失败了

时间:2015-06-26 04:42:21

标签: facebook api attachment

我希望通过开放API从Facebook收件箱中检索信息,但失败了。 我尝试在Graph API资源管理器中运行网址

481315825357933?fields=attachment

结果是:

{
  "error": {
    "message": (#100) Unknown fields: attachment.,
    "type": OAuthException,
    "code": 100
  }
}

然后我也运行FQL:

SELECT message_id, thread_id, author_id, body, created_time, viewer_id, attachment FROM message WHERE thread_id = 481315825357933

结果如下:

{
  "data": [
    {
      "message_id": "481315825357933_1435213395",
      "thread_id": "481315825357933",
      "author_id": "10153118278408579",
      "body": Print it!,
      "created_time": 1435213395,
      "viewer_id": "1595482814036523",
      "attachment": [
      ]
    },
    {
      "message_id": "481315825357933_1435213454",
      "thread_id": "481315825357933",
      "author_id": "10153118278408579",
      "body": Print it.,
      "created_time": 1435213454,
      "viewer_id": "1595482814036523",
      "attachment": {
        "media": [
        ],
        "name": ,
        "caption": ,
        "description": ,
        "properties": [
        ],
        "fb_object_type": ,
        "fb_object_id": "",
        "icon": https://fbstatic-a.akamaihd.net/rsrc.php/v2/yD/r/aS8ecmYRys0.gif,
        "tagged_ids": [
        ]
      }
    }
  ]
}

Facebook API禁止附件信息吗?

事先谢谢。

1 个答案:

答案 0 :(得分:1)

message level上有attachments个边缘:/{message-id}/attachments