Facebook iOS SDK - 通过新的 Facebook 移动应用程序授权返回“authorize#error=unkown_error”

发布于 2024-12-11 19:43:21 字数 297 浏览 0 评论 0原文

在我的 iOS 应用程序中使用最新的 github 版本的 FB iOS SDK,该应用程序以前在安装 Facebook 应用程序时可以正常进行身份验证。现在在 iOS 5 中并使用新的 facebook 移动 iOS 应用程序,返回到我的应用程序的 url 是 fb://authorize#unkown_error。

有谁遇到过这种情况吗。我在 Facebook 开发门户中验证了我的应用程序中启用了 iOS SSO。我还尝试从头开始创建一个新的 Facebook 应用程序,并在我的 iOS 应用程序中使用它,它获得了相同的结果。

提前致谢。

Using latest github version of FB iOS SDK in my iOS app which previously worked fine authenticating with the Facebook app installed. Now in iOS 5 and using the new facebook mobile iOS app the url returned to my application is fb://authorize#unkown_error.

Has anyone encountered this. I verified that iOS SSO is enabled in my app in the facebook dev portal. I also tried creating a new facebook app from scratch and using that in my iOS app and it garnered the same result.

Thanks in advance.

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

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

发布评论

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

评论(2

没︽人懂的悲伤 2024-12-18 19:43:21

当您尝试像 2011 年 11 月 4 日那样使用 Facebook SDK 并完成教程时,您将遇到如上所述的麻烦,因为它尚未实现 ARC。如果您也想使用 Storyboarding,您会遇到 appDelegate 现在的范围略有不同的麻烦。正如教程所述,您不应该让 appDelegate 响应 Facebook 委托方法,但您应该在 rootViewController 中执行此操作。

我在 gitug 上发布了一个修复代码: [email protected]:doozMen /Facebook-SDK-in-iOS5-and-using-storyboarding.git

When you try to use Facebook SDK as it was on 4 nov 2011 and complete the tutorial you will run into trouble as mentioned above, because it does not yet implement ARC. If you want to use Storyboarding as well you run into the trouble that the appDelegate now has a slightly different scope. You should not, as the tutorial states, make the appDelegate you respond to Facebook delegate methods but you should doe this in the rootViewController.

I posted a code whit a fix on gitug: [email protected]:doozMen/Facebook-SDK-in-iOS5-and-using-storyboarding.git

旧人哭 2024-12-18 19:43:21

在 Xcode 4.2.1 中,根据教程添加 src 文件夹时,您需要完全包含它而不删除项目文件,但在添加文件弹出窗口中,您需要取消选择“添加到目标”。然后在链接构建规则中将生成的 Facebook 静态库添加到构建目标而不是源本身。以这种方式,Facebook 按原样编译,并且可以与或不与 ARC/SB 一起使用。

in Xcode 4.2.1 when adding the src folder according to the tutorial , you need to include it fully without removing the project file , but on the add files popup you need to to deselect the add to target. then in your linkage build rule add the resulting static library of Facebook to the build target and not the source itself. in that way Facebook compile as is and can be used with or with out ARC/SB .

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