0
我做了FQL查詢到從用戶得到的帖子:如何確定用戶喜歡的對象?
{
"feeds": "SELECT type, actor_id, target_id, app_data, action_links, permalink, post_id, viewer_id, created_time, updated_time, source_id, message, description, attachment FROM stream WHERE filter_key = 'owner' AND source_id = <userId> AND is_hidden = 0 LIMIT 50"
}
在大多數情況下,結果是巨大的。但是,如果結果中包含有關用戶「喜歡」某個內容的帖子,我怎麼才能確定「喜歡」什麼?
例如:
{
"type": null,
"actor_id": <userId>,
"target_id": null,
"app_data": [
],
"action_links": null,
"permalink": "",
"post_id": "<postId>",
"viewer_id": <userId>,
"created_time": 1369109320,
"updated_time": 1369109320,
"source_id": <userId>,
"message": "",
"description": "<user name> likes a status.",
"attachment": {
"description": ""
}
}
哪個狀態?
或者:
{
"type": null,
"actor_id": <userId>,
"target_id": null,
"app_data": [
],
"action_links": null,
"permalink": "",
"post_id": "<postId>",
"viewer_id": <userId>,
"created_time": 1367029922,
"updated_time": 1367029922,
"source_id": <userId>,
"message": "",
"description": "<user name> likes a link.",
"attachment": {
"description": ""
}
}
哪個環節?
我是否需要執行多部分查詢以從其他表中獲取額外數據? 爲什麼target_id始終爲空?
你有沒有實際檢索具有的「喜歡的鏈接。」說明什麼結果?或者這是你想要處理的假設情況? –
asifrc
這些被直接從FQL響應中拉出。 – howettl