2016-09-21 34 views
-2

我尝试添加的登录功能实直通SDK 4.15。我跟着Facebook的SDK开发笔记,但我得到的错误..使用swift for iphone的Facebook集成授权错误?

-canOpenURL: failed for URL: "fbauth2:/" - error: "(null)" 
canOpenURL: failed for URL: "fbauth2:/" - error: "(null)" 
Failed to get remote view controller with error: Error 
Domain=_UIViewServiceInterfaceErrorDomain Code=0 "(null)" UserInfo= 
    {OriginalError=Error Domain=FBSOpenApplicationErrorDomain Code=3 "(null)"} 

编辑 我与编辑位试过很多次。现在工作正常,但仍然有两个消息

canOpenURL: failed for URL: "fbauth2:/" - error: "(null)" 
canOpenURL: failed for URL: "fbauth2:/" - error: "(null)" 

enter image description here

为什么会发生?

回答

0
canOpenURL: failed for URL: "fbauth2:/" - error: "(null)" 
canOpenURL: failed for URL: "fbauth2:/" - error: "(null)" 

这意味着您的应用程序不允许查询fbauth2:/。在LSAPPLICATIONQUERIESSCHEMES中添加fbauth2:/。 https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html

+0

我已经将它添加到我的info.plist文件中 –

+0

我编辑了我的任务并为plist文件添加了我的屏幕截图。它增加了那里,但仍面临同样的问题.. –

+0

http://stackoverflow.com/questions/32676334/ios-9-facebook-login-simulator-canopenurl-failed-for-url-fbauth2-erro Duplicate –