我查询了一个对其Feed有适当权限的页面。有一张有三张照片的帖子。响应json是:
{
"id": "some_id",
"from": {
"category": "Tv show",
"name": "some_name",
"id": "some_id"
},
"message": "New post with 3 photos",
"picture": "some_link",
"link": "some_link",
"icon": "some_link",
"actions": [
{
"name": "Comment",
"link": "some_link"
},
{
"name": "Like",
"link": "some_link"
}
],
"privacy": {
"description": "Public",
"value": "EVERYONE",
"friends": "",
"networks": "",
"allow": "",
"deny": ""
},
"type": "photo",
"status_type": "mobile_status_update",
"object_id": "some_id",
"created_time": "2014-02-05T07:06:22+0000",
"updated_time": "2014-02-05T07:06:35+0000",
"likes": {
"data": [
{
"id": "some_id",
"name": "some_name"
}
],
"paging": {
"cursors": {
"after": "MTgyNDY2NjQ1MjM4MTc5",
"before": "MTgyNDY2NjQ1MjM4MTc5"
}
}
},
"comments": {
"data": [
{
"id": "some_id",
"from": {
"category": "Tv show",
"name": "some_name",
"id": "some_id"
},
"message": "With a comment and a like on it",
"can_remove": true,
"created_time": "2014-02-05T07:06:35+0000",
"like_count": 0,
"user_likes": false
}
],
"paging": {
"cursors": {
"after": "MQ==",
"before": "MQ=="
}
}
}
},
首先,我只有一个object_id,而帖子包含3张照片。 object_id是一张照片。我还通过fql查询照片表中该照片的object_id,并且object_ids不匹配。为什么会这样? object_id在两种情况下的含义是什么?
答案 0 :(得分:0)
帖子的对象ID将与帖子中使用的照片的对象ID不同,因为它们实际上是同一事物的不同表示。 id
将是网页发布的ID,object_id
将是上传照片的相册ID。
尝试拨打/{object_id}/photos
以获取帖子中的照片列表。
测试每个object_id
代表的内容的一个好方法是转到http://www.facebook.com/{object_id}
以查看它的去向。它将转到页面,帖子,专辑/媒体集,照片或错误页面。