React-native-fbsdk: -canOpenURL: failed for URL: "fbauth2:/" - error: "The operation couldn鈥檛 be completed. in react native ios 13 new update issue

Created on 21 Sep 2019  路  13Comments  路  Source: facebook/react-native-fbsdk

Most helpful comment

Solution

Use react-native-fbsdk: 0.10.3 instead.

~Temporary solution~

~I've forked and fix podspec dependencies for react-native-fbsdk: '0.10.1'~
~So you can use my forked repo as a temporary fix without touching node_modules.~

~Short answer~
~replace suraneti/react-native-fbsdk#0.10.1-hotfix instead of 0.1.1~

~Step for NPM~
~1. react-native unlink react-native-fbsdk~
~2. npm uninstall react-native-fbsdk~
~3. npm install suraneti/react-native-fbsdk#0.10.1-hotfix~
~4. react-native link react-native-fbsdk~
~5. pod install~

~Step for Yarn~
~1. react-native unlink react-native-fbsdk~
~2. yarn remove react-native-fbsdk~
~3. yarn add suraneti/react-native-fbsdk#0.10.1-hotfix~
~4. react-native link react-native-fbsdk~
~5. pod install~

All 13 comments

Solution plz?

The same for me!

@penphy-dev
I have find the solution
Step

  1. Unlink the FBSDK "react-native unlink react-native-fbsdk"
  2. Delete pod file and pod lock file
  3. Install the pod "pod install" don't forgot to add
    pod 'FBSDKCoreKit'
    pod 'FBSDKLoginKit'
    pod 'FBSDKShareKit'
  4. Link the FBSDK "react-native link react-native-fbsdk"

@Android4Play Thank you so much <3

@Android4Play which version of react-native-fbsdk did you use ?

@binwilly 0.10.1

If you have same issue with above code then i have another solution
remove
react-native-fbsdk
from pod file and add
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'

then
install the pod
pod install

manually add the facebook sdk of react native in project libraries
then link libraries

Solution

Use react-native-fbsdk: 0.10.3 instead.

~Temporary solution~

~I've forked and fix podspec dependencies for react-native-fbsdk: '0.10.1'~
~So you can use my forked repo as a temporary fix without touching node_modules.~

~Short answer~
~replace suraneti/react-native-fbsdk#0.10.1-hotfix instead of 0.1.1~

~Step for NPM~
~1. react-native unlink react-native-fbsdk~
~2. npm uninstall react-native-fbsdk~
~3. npm install suraneti/react-native-fbsdk#0.10.1-hotfix~
~4. react-native link react-native-fbsdk~
~5. pod install~

~Step for Yarn~
~1. react-native unlink react-native-fbsdk~
~2. yarn remove react-native-fbsdk~
~3. yarn add suraneti/react-native-fbsdk#0.10.1-hotfix~
~4. react-native link react-native-fbsdk~
~5. pod install~

I'm using react-native-fbsdk 1.0.4 and I have this error.

react-native 0.61.2

Upgrage to [email protected]
remove framework references and add
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'
add libFBSDKCoreKit.a, libFBSDKLoginKit.a, libFBSDKSharekit.a and libRCTFbSDK.a in link with binaries.

react-native: 0.59.10
react-native-fbsdk: 0.8.0

Podfile:
pod 'FacebookSDK', '4.41.2'
pod 'FBSDKCoreKit', '4.41.2'
pod 'FBSDKLoginKit', '4.41.2'
pod 'FBSDKShareKit', '4.41.2'
pod 'react-native-fbsdk', :path => '../node_modules/react-native-fbsdk'

Try to change login behavior: LoginManager.setLoginBehavior(Platform.OS === 'ios' ? 'web' : 'WEB_ONLY');
It will open auth window via web view and user will be able to login with different accounts (not only with the first one).

This error message keeps throwing but it works on real device not simulator. Only on simulator, it just gives me error and nothing happens. On real device, it gives me this error but it also gives me token. it's really weird.

I have the same issue:
iOS 13.4
react-native 0.61.5
react-native-fbsdk: 1.1.2

The modal opens despite the message error, but nothing happens after

Was this page helpful?
0 / 5 - 0 ratings