Describe your dev environment here, giving as many details as possible. If you have them, make sure to include:
11.0.05.0 (if issue is Swift related)[Cocoapods] version 1.6.1Login with Facebook when Facebook app is installed
LoginManager() callback is called with the login result
When Facebook app is installed, LoginManager() callback is not called. When the app is not installed and the browser is used, it works.
Install the latest version of Facebook SDK and try to call LoginManager().logIn function with Facebook app installed.
Please provide a code sample, as well as any additional details, to help us track down the issue. If you can provide a link to a test project that allows us to reproduce the issue, this helps us immensely in both the speed and quality of the fix.
Note: Remember to format your code for readability:
let loginManager = LoginManager()
loginManager.logIn(permissions: [.publicProfile, .email], viewController: self, completion: { loginResult in
switch loginResult {
case .failed(let error):
print("\(error)")
case .cancelled:
print("cancelled")
case .success(let grantedPermissions, let declinedPermissions, let accessToken):
print("\(grantedPermissions) \(declinedPermissions)")
}
})
@luciano88 Did you manage to solve this?
@luciano88 Did you manage to solve this?
Yes, I solved updating to the new pods
I encountered the same problem
But updating to the latest version is still not resolved
Installing FacebookCore (0.9.0)
Installing FacebookLogin (0.9.0)
Xcode (11.2.1)
I encountered the same problem
But updating to the latest version is still not resolved
Installing FacebookCore (0.9.0)
Installing FacebookLogin (0.9.0)
Xcode (11.2.1)
If you're using Scene pattern, you have to add this code in SceneDelegate.swift
func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
guard let url = URLContexts.first?.url else {
return
}
let _ = ApplicationDelegate.shared.application(
UIApplication.shared,
open: url,
sourceApplication: nil,
annotation: [UIApplication.OpenURLOptionsKey.annotation])
}
Importing FBSDKCoreKit as well
I encountered the same problem
But updating to the latest version is still not resolved
Installing FacebookCore (0.9.0)
Installing FacebookLogin (0.9.0)
Xcode (11.2.1)If you're using Scene pattern, you have to add this code in SceneDelegate.swift
func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) { guard let url = URLContexts.first?.url else { return } let _ = ApplicationDelegate.shared.application( UIApplication.shared, open: url, sourceApplication: nil, annotation: [UIApplication.OpenURLOptionsKey.annotation]) }Importing
FBSDKCoreKitas well
It's working, thank you very much
Most helpful comment
If you're using Scene pattern, you have to add this code in SceneDelegate.swift
Importing
FBSDKCoreKitas well