I am integrating Facebook SDK 3.1 to my iOS 5 app. After Facebook Login, I have to query like this to get user info
NSString *query = @"SELECT uid, name, pic_big,username FROM user where uid = me()";
NSDictionary *queryParam =
[NSDictionary dictionaryWithObjectsAndKeys:query, @"q", nil];
[FBRequestConnection startWithGraphPath:@"/fql"
parameters:queryParam
HTTPMethod:@"GET"
completionHandler:^(FBRequestConnection *connection,
id result,
NSError *error) { ....
Now there are two issues with this approach:
1- User has just waited to get himself authenticated from Facebook and now just after that he has to wait again for to get his basic profile info to be fetched from web.
-Q- How can I fetch this info with the Facebook Login web call?
-2- When user reopens the app from login screen, if FBSession is still open and valid Facebok will re-authenticate that user but I would still have to get his basic
profile info from web...
-Q- How can I cache user's basic profile info in my app? Is there any id in FBSession object on which I could cache the user info?
Thanks in advance. Moeen.