React-native-fbsdk: LoginButton not working

Created on 18 Dec 2018  路  14Comments  路  Source: facebook/react-native-fbsdk

I am trying to use react-native-fbsdk to login. I followed the steps from React Native FBSDK. I get no error from xcode when I run it.

When I run react-native run-ios I have no error and I can even see facebook loginButton but when I click on the button, it doesn't bring me to the facebook login page. Nothing happens.

Most helpful comment

I'm having this issue too - Tried changing the permission but now i'm getting the error "Login failed with error: The operation couldn't be completed com.facebook.sdk.core code 3"

Any help much appreciated!

All 14 comments

change LoginButton 'publishPermission' to 'readPermission'.
Good Luck 馃槃

I'm having this issue too - Tried changing the permission but now i'm getting the error "Login failed with error: The operation couldn't be completed com.facebook.sdk.core code 3"

Any help much appreciated!

same thing here, I have been trying for 2 days now with no joy.

@anthonyhumphreys If you are getting the error on ios device then try to use ios_sdk version 4.38 ( Download from here).
I was using 4.39 and getting the same error, downgraded to 4.38 and problem solved 馃槃

Same problem here, please fix fbsdk for the new ios sdk version 4.39.0

Ran into the "Login Failed" error as well. Downgrading to 4.38 while using 0.8.0 seems to have worked around it. Also you can modify their ios_setup script to point to that version instead of the current one.

While downgrading makes it work in iOS, it breaks it in android..

Any updates on this being fixed/what the issue is?

While downgrading makes it work in iOS, it breaks it in android..

I have also downgraded but my android is also working fine.

@NativLouie
pod 'FBSDKCoreKit', :git => 'https://github.com/facebook/facebook-objc-sdk.git'
pod 'FBSDKLoginKit', :git => 'https://github.com/facebook/facebook-objc-sdk.git'
pod 'FBSDKShareKit', :git => 'https://github.com/facebook/facebook-objc-sdk.git'
I added these lines into podfile and did pod install
then added libRCTFBLogin.a into linked libraries
This solved my issue :)

had the same issue and @hasgarAOT's solution worked, though we're still waiting for the fix because it's not really safe to use git version in production as it being updated every time you you run pod update

@coryb08 Have a look on this link : Facebook Ios guide. You have to do it manually.

I don't have ios, I am simply using it on react-native to run it on my android phone. But I am getting an "undefined error" whenever I click in the login button

Was this page helpful?
0 / 5 - 0 ratings