fbconnect API response in iPhone

南笙酒味 提交于 2019-12-18 07:35:06

问题


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)?


回答1:


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



来源:https://stackoverflow.com/questions/5141703/fbconnect-api-response-in-iphone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!