2012-02-07 30 views

回答

1

我可以使用FQL多查詢嗎?

能夠當收件箱屬於具有授予適當的權限已驗證的應用用戶。

3
var fbid = your_fbuid_here; 
    FB.api({ 
       method: 'fql.query', 
       query: 'SELECT thread_id, author_id, created_time FROM message WHERE thread_id IN (SELECT thread_id FROM thread WHERE folder_id = 0) AND author_id = ' + fbid + ' ORDER BY created_time ASC LIMIT 1' 
      }, function (threadresponse) { 
       FB.api({ 
        method: 'fql.query', 
        query: 'SELECT thread_id, body, author_id, created_time FROM message WHERE thread_id = ' + threadresponse[0].thread_id + ' ORDER BY created_time ASC' 
       }, function (inboxresponse) { 
         //do stuff here with results 
       }); 
      }); 

+1

首先查詢將只選擇朋友的uid用戶編寫線程。如果該線程是由當前用戶創作的,則不會有結果。 – vian 2013-03-12 06:54:33

+0

嘿,我想知道是否有一個新的更好的方式來呢?這隻會返回由朋友創作的消息。 – Michelle 2014-04-01 14:23:08

相關問題