获取随机“facebookErrDomain 错误 10000”

发布于 2024-10-16 16:33:22 字数 174 浏览 2 评论 0原文

我正在使用最新的 facebook IOS SDK,并且在使用 requestWithGraphPath 时收到随机的 “facebookErrDomain error 10000”。我可以从 UI 触发请求,有时运行正常,有时却给出错误。

有人遇到过类似的问题吗?

I am using the latest facebook IOS SDK, and I am getting random "facebookErrDomain error 10000", when using the requestWithGraphPath. I can trigger the request from the UI and sometimes it runs fine, sometimes it gives me the error.

Has anyone ran into a similar issue?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

对不⑦ 2024-10-23 16:33:23

检查错误的附加 error_msg。我希望它是一个“OAuthException”和一个无效/过期的access_token。如果出现此错误,您需要提供新的 access_token。

Check for the additional error_msg of your error. I expect it to be an "OAuthException" and an invalid/expired access_token. You need to provide a new access_token in case you got this error.

赢得她心 2024-10-23 16:33:22

返回的错误对象包含有关所发生情况的详细信息。
我建议实现该方法来获取更多信息:

- (void)request:(FBRequest *)request didFailWithError:(NSError *)error {
    NSLog(@"%@", [error localizedDescription]);
    NSLog(@"Err details: %@", [error description]);
};

例如,对于我的问题,给了我该信息,并且我已经修复了它:

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"}
}
}

The error object returned has the details about what's happening.
I suggest to implement that method to get more infos:

- (void)request:(FBRequest *)request didFailWithError:(NSError *)error {
    NSLog(@"%@", [error localizedDescription]);
    NSLog(@"Err details: %@", [error description]);
};

For example for my problem gived me that info, and I've fixed it:

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"}
}
}
疯狂的代价 2024-10-23 16:33:22

问题是由于在开发过程中我更改了应用程序请求的权限。我已经授权我的应用程序,比如说许可 x,y,z,但我只要求 x,y。

我要做的就是从授权应用程序列表中删除该应用程序,并使用适当的权限再次对其进行授权。

我希望他们能提供更好的错误消息:)

The problem was due to the fact that during the development I had changed the permissions requested by the application. I had authorized my application say with permission x,y,z but I was only asking for x,y.

What I had to do is to remove the application from the list of authorized applications and authorize it again with the appropriate permissions.

I wish they gave better error message :)

与君绝 2024-10-23 16:33:22

如果这不起作用,请查看 GitHub 上的问题
https://github.com/facebook/facebook-ios-sdk /issues/close#issue/205

在 URL 类型下的 plist 文件中,确保将“Item 0”的值设置为“fb123456”而不是“fb[123456]”,

这就是让我困惑的地方

If that didnt work, look at the issues on GitHub
https://github.com/facebook/facebook-ios-sdk/issues/closed#issue/205

In the plist file under URL types, make sure you set the value of "Item 0" to "fb123456" instead of "fb[123456]"

that's what messed me up

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文