iOS上的Facebook SDK 4.6登录按钮不使用Facebook应用进行身份验证 [英] Facebook SDK 4.6 login button on iOS doesn't use Facebook app for authentication

查看:147
本文介绍了iOS上的Facebook SDK 4.6登录按钮不使用Facebook应用进行身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个简单的Swift应用程序中使用Facebook SDK v4.6.0 for iOS 9,以添加一个登录按钮到我的应用程序(我已经按照准备中的步骤您的iOS 9应用程序)。

I'm using the Facebook SDK v4.6.0 for iOS 9 in a simple Swift app to add a login button to my app (I've followed the steps in Preparing Your Apps for iOS 9).

登录按钮始终打开Safari进行身份验证,而不会使用本机的Facebook应用程序。这是预期的行为吗?可以使用本机应用程序(许多用户已经通过身份验证),而不是直接访问网络登录?

The login button always opens Safari to authenticate, and never uses the native Facebook app. Is this the expected behavior? Is it possible to use the native app (where many users are already authenticated) instead of going straight to the web login?

我已经尝试通过使用XCode构建和运行在iPhone上测试该应用程序,以及由TestFlight分发的构建。它始终打开Safari进行身份验证,即使我已安装并配置了本机应用程序。

I've tried testing the app on my iPhone by building and running using XCode, and with a build distributed by TestFlight. It always opens Safari to authenticate, even though I have the native app installed and configured.

我发现这个相关的问题,答案似乎只适用于3.x SDK。我还发现其他问题,涉及到配置 tryFBAppAuth authorizeWithFBAppAuth ,似乎适用于以前的边缘案例FB SDK的版本。我没有找到4.6的明确答案。

I found this relevant question where the answer seems to apply only to the 3.x SDK. I've also found other questions that had references to configuring tryFBAppAuth or authorizeWithFBAppAuth that seemed to apply to edge cases on previous versions of the FB SDK. I haven't found a clear answer for 4.6.

推荐答案

这是设计,几天前我填写了一个错误报告Facebook的iOS9仍然有一些问题。

This is by design , i have fill a bug report few days ago, Facebook still have some issue with iOS9.

看到Facebook团队回答: https://developers.facebook.com/bugs/786729821439894/?search_id
谢谢

See the Facebook team answere : https://developers.facebook.com/bugs/786729821439894/?search_id Thanks

这篇关于iOS上的Facebook SDK 4.6登录按钮不使用Facebook应用进行身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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