开发者

Calling FQL queries from the iPhone fbconnect libraries

开发者 https://www.devze.com 2023-01-19 05:58 出处:网络
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开发者_如何学G

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];
0

精彩评论

暂无评论...
验证码 换一张
取 消