I started developing an iPhone application in June 2010 that used the Facebook APIs extensively. I logged in and got a FBSession
which contains the logged in user's profile id, etc. I t开发者_如何学Gohen used the FBRequest
class to make many calls using the FQL to get data.
How do I call FQL queries from the latest Facebook Connect APIs?
NSMutableDictionary * params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"SELECT uid,name FROM user WHERE uid=4", @"query",
nil];
[_facebook requestWithMethodName: @"fql.query"
andParams: params
andHttpMethod: @"POST"
andDelegate: self];
精彩评论