7
我想從https://graph.facebook.com/me/inbox或通過FQL檢索所有消息如特定用戶:「所有的,並與ID用戶消息:123456789」如何通過FQL或GRAPH API獲取特定用戶的消息?
我將有可能與FQL多查詢?
我想從https://graph.facebook.com/me/inbox或通過FQL檢索所有消息如特定用戶:「所有的,並與ID用戶消息:123456789」如何通過FQL或GRAPH API獲取特定用戶的消息?
我將有可能與FQL多查詢?
我可以使用FQL多查詢嗎?
是能夠當收件箱屬於具有授予適當的權限已驗證的應用用戶。
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
});
});
facebookfacebook-fqlfacebook-apifacebook-graph-apifacebook-fql-query
首先查詢將只選擇朋友的uid用戶編寫線程。如果該線程是由當前用戶創作的,則不會有結果。 – vian 2013-03-12 06:54:33
嘿,我想知道是否有一個新的更好的方式來呢?這隻會返回由朋友創作的消息。 – Michelle 2014-04-01 14:23:08