Jud*_*phy 57 facebook ios parse-platform facebook-sdk-4.0
我一直在
"Error Domain = com.facebook.sdk.login Code = 308"无法完成操作.(com.facebook.sdk.login错误308.)""
试图从我的设备登录Facebook.
我的代码可以在模拟器上运行,但不能在实际设备上运行.有没有人遇到过这个错误代码?我很乐意根据要求分享代码.
Sur*_*hak 49
下面的解决方案适用于在Xcode 8上运行的iOS9 +,适用于Swift3.0
步骤是
FBSDKApplicationDelegate.sharedInstance().application(application, didFinishLaunchingWithOptions: launchOptions)
设置打开URL
guard let source = options[UIApplicationOpenURLOptionsSourceApplicationKey] as? String else { return false }
let annotation = options[UIApplicationOpenURLOptionsAnnotationKey] as? String
return FBSDKApplicationDelegate.sharedInstance().application(application, open: url, sourceApplication: source, annotation: annotation)
use*_*673 44
至少对我来说,一个解决方案是不通过Xcode调试器在设备上运行.如果我在调试器外部的设备上运行应用程序,Facebook登录正常.如果我通过调试器在sim中运行应用程序,Facebook登录工作正常.
只有当我通过Xcode调试器在设备上运行应用程序时,我才会每次都收到com.facebook.sdk.login错误308.
Sta*_*kiy 26
我有完全相同的问题,并能够通过修改Info.plist找到解决方案
我已经添加了所有可能的方案 LSApplicationQueriesSchemes
完整列表如下所示:
<key>LSApplicationQueriesSchemes</key>
<array>
<string>fbapi</string>
<string>fbapi20130214</string>
<string>fbapi20130410</string>
<string>fbapi20130702</string>
<string>fbapi20131010</string>
<string>fbapi20131219</string>
<string>fbapi20140410</string>
<string>fbapi20140116</string>
<string>fbapi20150313</string>
<string>fbapi20150629</string>
<string>fbauth</string>
<string>fbauth2</string>
<string>fb</string>
<string>fb-messenger-api20140430</string>
<string>fb-messenger-platform-20150128</string>
<string>fb-messenger-platform-20150218</string>
<string>fb-messenger-platform-20150305</string>
<string>fb-messenger-api</string>
<string>fbshareextension</string>
</array>
Run Code Online (Sandbox Code Playgroud)
Geo*_*f H 14
我得到的完全相同的东西FB SDK 4.6.0 Xcode 7.0 iOS9.在Facebook开发者网站上的所有设置和说明都遵循了这封信.上述解决方案均不适合我.我发现当你正在部署到设备并在执行登录过程时反馈到Xcode控制台时,行为会更糟.如果它实际上是否记录你,那真的是好运.当您在部署后重新启动应用程序时,它似乎以更可预测的方式运行. - 事实上这是事实!
当它决定登录失败时,会导致以下错误:
Error Domain=com.facebook.sdk.login Code=308 "(null)"
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
36417 次 |
| 最近记录: |