Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FQL in the SDK 3.0 Beta for iOS
- [[[FBRequest alloc] initWithSession:...
- restMethod:...
- parameters:...
- HTTPMethod:...]
- startWithCompletionHandler:...];
- FBRequest *fql = [FBRequest requestForGraphPath:@"fql"];
- [fql.parameters setObject:@"SELECT uid, name, pic_square FROM user WHERE uid = me()"
- @"OR uid IN (SELECT uid2 FROM friend WHERE uid1 = me())"
- forKey:@"q"];
- [fql startWithCompletionHandler:^(FBRequestConnection *connection,
- id result,
- NSError *error) {
- if (result) {
- NSLog(@"result:%@", result);
- }
- }];
- FBRequestConnection *conn = [[FBRequestConnection alloc] init];
- [conn addRequest:fqlRequest1 completionHandler:^(FBRequestConnection *connection,
- id result,
- NSError *error) {
- if (result) {
- NSLog(@"result:%@", result);
- }
- }];
- [conn addRequest:fqlRequest2 completionHandler:^(FBRequestConnection *connection,
- id result,
- NSError *error) {
- if (result) {
- NSLog(@"result:%@", result);
- }
- }];
- [conn start];
Advertisement
Add Comment
Please, Sign In to add comment