iPhone 中的 fbconnect API 响应 [英] fbconnect API response in iPhone

查看:22
本文介绍了iPhone 中的 fbconnect API 响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我像这样调用 FaceBook API:

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);
};

问题是,如果我同时单击两个按钮(testBtnAct 和 test1BtnAct),然后输出进入 - (void)request:(FBRequest *)request didLoad:(id)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.

那我们怎么知道哪个结果对result有价值(即对于me OR me/friends)?

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

推荐答案

你可以在didload方法中查看你的请求参数的请求url字符串.

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

这篇关于iPhone 中的 fbconnect API 响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆