Ios Facebook sdk:登录屏幕显示在弹出窗口中,而不是连接Facebook应用程序
我正在尝试使用facebook connect登录我的应用程序。登录界面出现在弹出窗口中,而不是将我带到facebook应用程序 我已经检查了我的包id、应用id等。运气不好Ios Facebook sdk:登录屏幕显示在弹出窗口中,而不是连接Facebook应用程序,ios,objective-c,facebook-sdk-3.0,Ios,Objective C,Facebook Sdk 3.0,我正在尝试使用facebook connect登录我的应用程序。登录界面出现在弹出窗口中,而不是将我带到facebook应用程序 我已经检查了我的包id、应用id等。运气不好 请帮忙 在图像下方添加您的.plist文件检查 以及AppDelegate文件中的返回Url -(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplicati
请帮忙 在图像下方添加您的
.plist
文件检查
以及AppDelegate
文件中的返回Url
-(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
}
这是针对xcode 9.2 swift 4.1的。添加.plist文件
<key>LSApplicationQueriesSchemes</key>
<array>
<string>facebook</string>
<string>fbapi</string>
<string>fbauth</string>
<string>fb-messenger-api</string>
<string>fbauth2</string>
<string>fbshareextension</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>fb-messenger-api20140430</string>
</array>
<key>FacebookAppID</key>
<string>XXXXXXXX</string>
<key>FacebookDisplayName</key>
<string>XXXXXX</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>fbXXXXX</string>
</array>
</dict>
</array>
您的设备上是否安装了facebook应用程序?
func application(_ app: UIApplication,
open url: URL,
options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool {
return SDKApplicationDelegate.shared.application(app, open: url, options: options)
}
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
SDKApplicationDelegate.shared.application(application, didFinishLaunchingWithOptions: launchOptions)
return true
}