2013-05-16 27 views
1

是否有可能檢索已向我發送請求的app_id?我試圖通過FQL檢索給予user_id的apprequest

Select app_id from apprequest where recipient_uid=me(); 

這樣做,但我得到了一個結果作爲

{ 
    "error": { 
    "message": "Your statement is not indexable. The WHERE clause must contain an indexable 
    column. Such columns are marked with * in the tables linked from 
    http://developers.facebook.com/docs/reference/fql ", 
    "type": "NoIndexFunctionException", 
    "code": 604 
} 
} 

這有什麼錯我的邏輯是什麼?無論如何,我可以獲得通過FQL向我發送請求的應用程序列表嗎?

回答

0

我的邏輯有什麼問題?

什麼都沒有。錯誤消息本身鏈接到的文檔頁面說recipient_uid可轉位字段。典型的litte FB-f * ckup我猜。你應該看看是否有一個錯誤報告,如果沒有創建一個。

圖形API user對象有一個apprequests連接,你試過那個嗎?

https://developers.facebook.com/tools/explorer?method=GET&path=me%3Ffields%3Dapprequests.fields(to%2Capplication%2Ccreated_time%2Cdata%2Cfrom%2Cid%2Cmessage)

+0

非常感謝。我將我的代碼重寫爲$ response = $ facebook-> api('me/apprequests');但我現在面臨的問題是我得到的結果總是空的。我問了一些朋友向我發送應用請求,但我仍然得到空的結果。爲什麼我不能得到正確的結果。 – user2377219