facebookarchive / react-native-fbsdk

A React Native wrapper around the Facebook SDKs for Android and iOS. Provides access to Facebook login, sharing, graph requests, app events etc.
https://developers.facebook.com/docs/react-native
Other
2.99k stars 908 forks source link

-canOpenURL: failed for URL: "fbauth2:/" - error: "The operation couldn’t be completed. in react native ios 13 new update issue #644

Open Android4Play opened 4 years ago

Android4Play commented 4 years ago

Solution plz?

ghost commented 4 years ago

The same for me!

Android4Play commented 4 years ago

@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"
ghost commented 4 years ago

@Android4Play Thank you so much <3

binwilly commented 4 years ago

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

ninjacoder-rs commented 4 years ago

@binwilly 0.10.1

ninjacoder-rs commented 4 years ago

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

suraneti commented 4 years ago

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~

Ilario17 commented 4 years ago

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

react-native 0.61.2

namanicebed commented 4 years ago

Upgrage to react-native-fbsdk@0.10.3 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.

EugeneYarem19 commented 4 years ago

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).

dipsiiiiiiiiii commented 4 years ago

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.

gigeos commented 4 years ago

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