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

c++ - Function signature as a function template parameter -

How to call a javascript function after the page loads with a chrome extension? -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -