2013-10-09 95 views
2

我有一個multiquery讓我的朋友和他們喜歡的網頁,一些數據。圖形API multiquery失敗,錯誤:請求失敗

{ 
    "query1": "SELECT uid, name, pic_square,birthday_date FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) ORDER BY birthday_date", 
    "query2": "SELECT uid, page_id FROM page_fan WHERE uid IN (SELECT uid FROM #query1)", 
    "query3": "SELECT page_id,name,type,categories FROM page where page_id IN (SELECT page_id FROM #query2)" 
} 

我以前測試過這個multiquery大約一個月它完美地工作好,其實我連我從這個multiquery收集的數據,但是當我昨天再次嘗試這樣做,我得到一個錯誤

{ 
    "error": "Request failed" 
} 

我有適當的權限執行此操作。

奇怪當我限制我的查詢它成功返回。

{ 
    "query1": "SELECT uid, name, pic_square,birthday_date FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) ORDER BY birthday_date", 
    "query2": "SELECT uid, page_id FROM page_fan WHERE uid IN (SELECT uid FROM #query1) LIMIT 20", 
    "query3": "SELECT page_id,name,type,categories FROM page where page_id IN (SELECT page_id FROM #query2)" 
} 

現在是否有某種限制?我如何得到這個工作?

回答

0

它是一個分頁問題。顯然,一個用戶有很多聯繫人(2k +),除非你一次獲取1K,否則api將會中斷。