Facebook FQL query to get user's sent messages since a timestamp -


i'm not familiar facebook fql. i'm looking way see users have received message. know need ask extended permissions read_mailbox

for instance see if message "hello" has been sent after 2013-05-02 14:00 , recipient userids has been sent to.

input query message "hello" , timestamp "2013-05-02 14:00" current timestamp.

output query list of userids have been sent message "hello" since timestamp 2013-05-02 14:00

after trial , error found solution:

nsstring *query = [nsstring stringwithformat:  @"{" @"'query1':'select thread_id message thread_id in " @"(select thread_id thread folder_id = 1 , updated_time >= \"%.f\") " @"and author_id = me() , body = \"%@\"," @"'query2':'select recipients, thread_id thread thread_id in (select thread_id #query1)'" @"}",  self.sendtime, self.facebooktext]; 

Comments

Popular posts from this blog

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -