簡單的說。我需要幫助建立一個FQL多查詢請求,將做到以下幾點:FQL Multiquery寫入連接查詢
- 抓住從登錄用戶的好友列表,然後,
- 的UID使用這些ID抓住所有的評論和消息(來自流)從過去兩週
- 最後,加入這些結果與使用者名稱有
繼承人的查詢,我至今:
[1] GRAB_UI DS:
SELECT uid2 FROM friend WHERE uid1 = me()
[2] GRAB_STREAM(缺失2周部分和可能的錯誤共):
SELECT type, created_time, post_id, comments, actor_id, target_id, message
FROM stream
WHERE filter_key IN
(SELECT filter_key FROM stream_filter WHERE uid = me())
AND actor_id IN
(SELECT uid2 FROM friend WHERE uid1 = me())
)';
[3] GRAB_USRNAMES:
SELECT uid, name, username, pic_square, current_location, profile_url
FROM user WHERE uid IN
(SELECT uid2 FROM friend WHERE uid1 = me())
我真的可以使用大師來提出這種請求,我非常感謝幫助。
感謝偉大的答案。 – vsiege