2014-01-27 109 views
0

我有這麼查詢Facebook的多個FQL查詢

{ 
"users" : "SELECT uid, name, pic_big FROM user WHERE uid in (SELECT source_id FROM #stream)", 
"stream" : "SELECT post_id, description, type, message, created_time, updated_time, source_id, attachment from stream where filter_key in ('others') and type in (46, 56, 66, 80, 128, 247, 308) and (message or description) ORDER BY created_time desc LIMIT 15", 
"photos" :"select images, pid from photo where pid in (SELECT attachment.media.photo.pid FROM #stream)" 

} 

,當我嘗試從圖形資源管理器使用的access_token一切順利的罰款。但是,如果我用我的訪問令牌我的應用程序爲用戶提供了連接錯誤

{ 
    "error": { 
    "message": "An unknown error has occurred.", 
    "type": "OAuthException", 
    "code": 1 
    } 
} 

我發現如果比去年變化的查詢和替換這個代碼與實際PID一切順利的罰款。 SELECT attachment.media.photo.pid FROM #stream

任何人都可以幫忙嗎?

回答

0

在隨機我管理,可以實現我想要的東西。

這裏工作代碼:

{ 
"users" : "SELECT uid, name, pic_big FROM user WHERE uid in (SELECT source_id FROM #stream)", 
"stream" : "SELECT post_id, description, type, message, created_time, updated_time, source_id, attachment from stream where filter_key in ('others') and type in (46, 56, 66, 80, 128, 247, 308) and (message or description) ORDER BY created_time desc LIMIT 15", 
"photos" :"select images, pid from photo where pid in (SELECT attachment FROM #stream)" 
} 

,你可以看到我改變SELECT attachment.media.photo.pid FROM #streamSELECT attachment FROM #stream

我沒有看到FQL邏輯可言現在:(