获取随机“facebookErrDomain 错误 10000”
我正在使用最新的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
检查错误的附加
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.返回的错误对象包含有关所发生情况的详细信息。
我建议实现该方法来获取更多信息:
例如,对于我的问题,给了我该信息,并且我已经修复了它:
The error object returned has the details about what's happening.
I suggest to implement that method to get more infos:
For example for my problem gived me that info, and I've fixed it:
问题是由于在开发过程中我更改了应用程序请求的权限。我已经授权我的应用程序,比如说许可 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 :)
如果这不起作用,请查看 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