我希望通过开放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禁止附件信息吗?
事先谢谢。