usrgnxc
usrgnxc

Reputation: 804

facebook-ios-sdk requestWithGraphPath:@"me/friends"

i can't find any basic documentation on this sdk (am i just being stupid or looking in the wrong place?). i can't work out what this method:

- (void)request:(FBRequest*)request didLoad:(id)result

actually returns in the case of a request like this:

requestWithGraphPath:@"me/friends"

or this:

requestWithGraphPath:@"me"

result seems to be an nsdictionary, but i don't know what to expect in it etc.

Upvotes: 2

Views: 10168

Answers (2)

Mark Allen
Mark Allen

Reputation: 29

If i understood your question, you were looking for the documentation for the Graph API calls for Facebook. You can find it here :

http://developers.facebook.com/docs/reference/api/

Upvotes: 0

Forrest
Forrest

Reputation: 127983

Confirmed with following codes

 if ([result isKindOfClass:[NSDictionary class]]) {
      NSLog(@"count : %d ", [result count]);
      NSArray* resultArray = [result allObjects];

      NSLog(@"count : %d ", [result count]);
      result = [resultArray objectAtIndex:0];

      NSLog(@"count : %d ", [result count]);
      result = [result objectAtIndex:0];

      [self.label setText:[result objectForKey:@"name"]];
  }

Upvotes: 2

Related Questions