mac*_*ter 15 ios facebook-ios-sdk
我正在使用最新的facebook IOS SDK "facebookErrDomain error 10000",当我使用时,我会随机使用requestWithGraphPath.我可以从UI触发请求,有时它运行正常,有时它会给我错误.
有没有人遇到过类似的问题?
jol*_*ger 24
返回的错误对象包含有关正在发生的事情的详细信息.我建议实现该方法以获得更多信息:
- (void)request:(FBRequest *)request didFailWithError:(NSError *)error {
NSLog(@"%@", [error localizedDescription]);
NSLog(@"Err details: %@", [error description]);
};
Run Code Online (Sandbox Code Playgroud)
例如,我的问题给了我这些信息,我已修复它:
2011-05-27 11:19:57.313 Challengein[7704:207] The operation couldn’t be completed. (facebookErrDomain error 10000.)
2011-05-27 11:19:57.314 Challengein[7704:207] Err details: Error Domain=facebookErrDomain Code=10000 "The operation couldn’t be completed. (facebookErrDomain error 10000.)" UserInfo=0x6878b90 {error=<CFBasicHash 0x6879be0 [0x141c400]>{type = mutable dict, count = 2,
entries =>
2 : <CFString 0x6877f70 [0x141c400]>{contents = "type"} = <CFString 0x686f9a0 [0x141c400]>{contents = "OAuthException"}
3 : <CFString 0x686d610 [0x141c400]>{contents = "message"} = <CFString 0x686f970 [0x141c400]>{contents = "(#100) picture URL is not properly formatted"}
}
}
Run Code Online (Sandbox Code Playgroud)
mac*_*ter 10
问题是由于在开发过程中我更改了应用程序请求的权限.我已经授权我的申请表示允许x,y,z,但我只是要求x,y.
我必须做的是从授权应用程序列表中删除该应用程序,并使用适当的权限再次授权它.
我希望他们给出更好的错误消息:)
| 归档时间: |
|
| 查看次数: |
21519 次 |
| 最近记录: |