I am creating an iphone app using Facebook api. Here I’m using the following query to get the friends details;
NSString* fql1 = [NSString stringWithFormat:@"SELECT uid,pic_square, name,online_presence FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) ORDER BY online_presence"];
NSMutableDictionary * params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
fql1, @"query",
nil];
[_facebook requestWithMethodName:@"fql.query" andParams:params andHttpMethod: @"POST" andDelegate: self];
here, I need to replace the term ‘me()’ to make my project running. So, how can I do that, I have my (user’s) ID, name in hand. So will it work if I replace the term me() with user id, user name. If yes, how can I do that?
Please share your thoughts.
Thanks 🙂
Yes, just replace the ‘me()’ with the uid of the user you’re looking for the info of