LoginManager.logInWithReadPermissions using Facebook App fails to resolve/reject promise on iOS #407
Comments
I have the same problem. |
same goes to me, any alternative like disabling the login via facebook application instead? I'll prefer temporary disable the login via application if this issue couldn't be solved quickly |
I'm running into the same issue as above and haven't been able to find a solution. This is occurring on iOS for me as well, i'm running these versions: |
Was trying to debug in the xCode and notice the SDK never callback when the login is successful. |
Same issue |
Found a solution, it works for me. |
@Martian2Lee thank for saving my life. Good work bro. |
I already have the following. Is Linking required to make this work?
|
I was able to do this by doing the following: *Note this is on iOS only, I haven't tested this on android. After following the installation and setup instructions here
Worked for me so hope that helps. |
@jmelendev don't work for me |
@demoran23 have you find any solutions yet? |
for step 6 try opening the .xcworkspace file instead |
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return FBSDKApplicationDelegate.sharedInstance().application(application, didFinishLaunchingWithOptions: launchOptions)
}
func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool {
return FBSDKApplicationDelegate.sharedInstance().application(application, open: url as URL!, sourceApplication: sourceApplication, annotation: annotation)
}
func applicationDidBecomeActive(application: UIApplication) {
FBSDKAppEvents.activateApp()
} Although above code is wrriten in |
I only have this on my
`
} |
None of these responses work for me. I'm using cocoapods. My pod install looks fine. I have these installed
My function looks like this:
When I press the FB button, all I get is the first log statement, then the error message. I get no errors or any indication what causes the error. I don't think the app is grabbing the profile and email parameters. |
Updating the iOS Facebook SDK from 4.32 to 4.38 appears to have fixed this issue for me. 4.39 exhibited other problems. I'll leave this issue open for now. If others chime in that this fix works for them, we can close it. pod config:
|
4.38.0 resolved the issue for me. |
With no further negative input, I'll go ahead and close this issue. It appears to be a bug that existed in 4.32 that does not exist in 4.38. |
Environment
Environment:
OS: macOS High Sierra 10.13.6
Node: 10.11.0
Yarn: 1.10.1
npm: Not Found
Watchman: 4.9.0
Xcode: Xcode 10.0 Build version 10A255
Android Studio: 3.0 AI-171.4443003
Packages: (wanted => installed)
react: 16.2.0 => 16.2.0
react-native: 0.53.0 => 0.53.0
Description
On iOS, invoking
LoginManager.logInWithReadPermissions
provides an intermediary screen.Log in with the Facebook App >
successfully authenticates, but returns back to the intermediary screen, rather than the source application. UsingLog in with phone or email
returns back to the source application.Only upon hitting
Cancel
does the promise resolve or reject (in this case, it resolves withisCancelled
as true).The promise should resolve once authenticated using the Facebook App, and not bring us back to the choice screen.
Reproducible Demo
LoginManager.logInWithReadPermissions(['public_profile', 'email', 'user_friends', 'user_location'])
.then(console.log).catch(console.warn);
The text was updated successfully, but these errors were encountered: