Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
624 views
in Technique[技术] by (71.8m points)

ios - 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.

Then how do we know which result comes result valuable (i.e for me OR me/friends)?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...