fbconnect API response in iPhone

I am calling the FaceBook API like this:

-(IBAction)testBtnAct:(id)sender{
    [facebookObj requestWithGraphPath:@"me" andDelegate:self];
}
-(IBAction)test1BtnAct:(id)sender{
    [facebookObj requestWithGraphPath:@"me/friends" andDelegate:self];
}
- (void)request:(FBRequest *)request didLoad:(id)result {
    NSLog(@"request didLoad..%@",result);
};

The issue is that if I am clicking the both button(testBtnAct and test1BtnAct) and then output comes into - (void)request:(FBRequest *)request didLoad:(id)result in result variable.

  • Facebook iOS SDK - get friends list
  • Error getting valueForKey in an NSDictionary for key containing @ character
  • How to deprecate a method in Xcode
  • Detect if application: didReceiveRemoteNotification: fetchCompletionHandler: was called by tapping on a notification in Notification Center
  • UIWebView webViewDidFinishLoad not getting called iOS
  • “Unknown class <MyClass> in Interface Builder file” error at runtime
  • Then how do we know which result comes result valuable (i.e for me OR me/friends)?

    Solutions Collect From Internet About “fbconnect API response in iPhone”

    You could check the request url string of your request parameter in the didload method.