Fbconnect API response on iPhone

I call the FaceBook API as follows:

-(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 problem is that if I click both buttons (testBtnAct and test1BtnAct), then the output goes to - (void)request:(FBRequest *)request didLoad:(id)resultthe variable result.

Then how do we know what a resultvaluable result comes from (for example, for meOR me/friends)?

0
source share
1 answer

You can check the url string of your query parameter in the didload method.

+1
source

Source: https://habr.com/ru/post/1771416/


All Articles