thebergamo / react-native-fbsdk-next Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
I already implement all the required steps for the Login with Facebook feature on the official documentation of this library. and already implemented some step required like updating AndroidManifest and res/values/strings.xml . But when I tried to excecute this code:
const result = await LoginManager.logInWithPermissions(['public_profile']);
it opens another activity for a second and then back to the app and said {isCancelled: true} .
Do I need to verify my business in order to use facebook login?
return {isCancelled: false}
const result = await LoginManager.logInWithPermissions(['public_profile']);
if (result.isCancelled) {
throw 'User cancelled the login process';
}
const data = await AccessToken.getCurrentAccessToken();
if (!data) {
throw 'Something went wrong obtaining access token';
}
const facebookCredential = auth.FacebookAuthProvider.credential(data.accessToken);
return auth().signInWithCredential(facebookCredential);
System:
OS: macOS 11.2.2
CPU: (8) x64 Apple M1
Memory: 99.65 MB / 8.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.15.5 - /usr/local/bin/node
Yarn: 1.22.10 - ~/Projects/ghackdev/networth/node_modules/.bin/yarn
npm: 7.5.0 - /opt/homebrew/bin/npm
Watchman: 4.9.0 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.10.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
Android SDK:
API Levels: 28, 29, 30
Build Tools: 28.0.3, 29.0.2, 30.0.3
System Images: android-30 | Google APIs Intel x86 Atom, android-30 | Google Play ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 12.5/12E262 - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_292 - /usr/bin/javac
Python: 2.7.16 - /usr/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.13.1 => 16.13.1
react-native: 0.63.4 => 0.63.4
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Disclaimer: I removed the template, since this is an idea and not a bug report.
I currently only need some parts of the SDK, hence I moved to the native SDK's using only the automatic tracking.
My supposed solution would be to have one base package, and then splitting up all the rest.
What do you think about this?
I did npm I react-native-fbsdk-next and after I tried to do cd ios && pod install
But I got cocoa pods error somewhy.
I am using MacBook Pro M1, BigSur 11.1
I use fbsdk just log events in the fbapp and nothing more. Do I need to upgrade to latest FBSdk and will it impact on approval of my iOS apps?
The AutoInitEnabled
default is true
if not set on Android. If following GDPR-style we will need to also wrap FacebookSdk.setAutoInitEnabled
for Android (reference).
Originally posted by @rnike in #2 (comment)
Hi, I am having trouble using this library, I followed the instructions with the facebook guide that appears on the readMe and did all the steps.
Before this, I used the react-native-fbsdk library which is now deprecated due to facebook releasing a newer version (0.9) of the SDK. In the instructions here says that you can add the pod that you need in the podfile of ios but when I add them and then pod install I get this error:
[!] CocoaPods could not find compatible versions for pod "FBSDKCoreKit":
In snapshot (Podfile.lock):
FBSDKCoreKit (= 9.0.1, ~> 9.0.1)
In Podfile:
FacebookShare was resolved to 0.1.1, which depends on
FBSDKCoreKit (~> 4.14)
react-native-fbsdk-next (from `../node_modules/react-native-fbsdk-next`) was resolved to 4.0.0, which depends on
react-native-fbsdk-next/Core (= 4.0.0) was resolved to 4.0.0, which depends on
FBSDKCoreKit (~> 9.0.1)
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
* changed the constraints of dependency `FBSDKCoreKit` inside your development pod `react-native-fbsdk-next`.
You should run `pod update FBSDKCoreKit` to apply changes you've made.
Also, with this library you need to modify the appDelegate.m here but when I add that code it says I am missing an import, I know the import missing is FBSDKCoreKit or at least I think it is because the previous SDK used that one. To fix that you need to add the pod but when I add it the error above shows up.
Looking through the code it would appear that the new limited login functionality available via the LoginManager and or LoginButton has not yet been exposed to React Native.
Is anyone already working on this or have a timeline for this. Alternatively I'd be happy to help as it looks like it should be a fairly straightforward process.
https://developers.facebook.com/docs/facebook-login/limited-login/ios/
In idiomatic JavaScript, it is common to generate objects like:
{
exampleParam: x ? x.value : null,
}
However, passing this object to logPurchase
as the third parameter, params
when exampleParam
is null results in the event silently not propagating to Facebook Events.
Issue the following event:
AppEventsLogger.logPurchase(15, "USD", { exampleParam: "hello", exampleParam2: null });
This event will never show up under the "Test Your Events in Real Time" pane at https://www.facebook.com/events_manager2/
One of the following, in order of ideal behavior:
react-native-fbsdk-next
cleans out null object properties and sends the event to Facebooklogcat
Issue the event under "To Reproduce" while looking at the "Test Your Events in Real Time" pane at https://www.facebook.com/events_manager2/
The specific react native environment should not affect this issue.
The login works great when the Facebook app is not installed but whenever I install the app and click login, this error pops up:
LoginManager
& LoginButton
which both seemed to give the same error)The app automatically logs in if the FB app is logged in then prompts for permissions if this is the first time.
Not possible to repo on snack because it would require being able to download Facebook onto the emulator.
Library version: ^4.3.0
System:
OS: Windows 10 10.0.19043
CPU: (4) x64 Intel(R) Core(TM) i5-6600 CPU @ 3.30GHz
Memory: 1.71 GB / 15.89 GB
Binaries:
Node: 14.16.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.10 - ~\AppData\Roaming\npm\yarn.CMD
npm: 7.18.1 - C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: Version 4.1.0.0 AI-201.8743.12.41.7199119
Visual Studio: Not Found
Languages:
Java: 11.0.10
npmPackages:
@react-native-community/cli: Not Found
react: ^17.0.2 => 17.0.2
react-native: ^0.64.0 => 0.64.2
react-native-windows: Not Found
npmGlobalPackages:
*react-native*: Not Found
For anyone who might be looking into this issue and needs an immediate fix, the workaround I've been using for now is setting the login behaviour to web only before calling logInWithPermissions
like this:
LoginManager.setLoginBehavior('web_only');
Hello, Do you have plan to make index.d.ts?
It looks like the FBSDK is blocked to 9.0.x by the CocoaPods optimistic operator since commit 6b67a79 in react-native-fbsdk-next.podspec
Run pod update
and look a the FBSDK version in the Podfile.lock
(9.0.1)
Running pod update
should update the FBSDK to the latest version (currently 9.3.0)
I got this error after i remove the old version "react-native-fbsdk" and install "react-native-fbsdk-next" and run it on ios. Is there anyone know why it happened ? I'm using rn 0.64.2 and newest react-native-fbsdk-next
duplicate symbol 'OBJC_CLASS$_FBSDKBase64' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKBase64.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKBase64.o)
duplicate symbol 'OBJC_METACLASS$_FBSDKBase64' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKBase64.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKBase64.o)
duplicate symbol 'OBJC_CLASS$_FBSDKBasicUtility' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKBasicUtility.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKBasicUtility.o)
duplicate symbol 'OBJC_METACLASS$_FBSDKBasicUtility' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKBasicUtility.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKBasicUtility.o)
duplicate symbol '_fb_dispatch_on_default_thread' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKBasicUtility.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKBasicUtility.o)
duplicate symbol '_fb_dispatch_on_main_thread' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKBasicUtility.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKBasicUtility.o)
duplicate symbol 'OBJC_IVAR$_FBSDKCrashHandler._observers' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKCrashHandler.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKCrashHandler.o)
duplicate symbol 'OBJC_IVAR$_FBSDKCrashHandler._processedCrashLogs' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKCrashHandler.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKCrashHandler.o)
duplicate symbol 'OBJC_IVAR$_FBSDKCrashHandler._dataExtractor' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKCrashHandler.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKCrashHandler.o)
duplicate symbol 'OBJC_CLASS$_FBSDKCrashHandler' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKCrashHandler.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKCrashHandler.o)
duplicate symbol 'OBJC_METACLASS$_FBSDKCrashHandler' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKCrashHandler.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKCrashHandler.o)
duplicate symbol '_kFBSDKMappingTableIdentifier' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKCrashHandler.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKCrashHandler.o)
duplicate symbol 'OBJC_IVAR$_FBSDKCrashHandler._fileManager' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKCrashHandler.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKCrashHandler.o)
duplicate symbol '_kFBSDKCrashTimestamp' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKCrashHandler.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKCrashHandler.o)
duplicate symbol '_kFBSDKCrashReason' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKCrashHandler.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKCrashHandler.o)
duplicate symbol '_kFBSDKAppVersion' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKCrashHandler.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKCrashHandler.o)
duplicate symbol '_kFBSDKDeviceOSVersion' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKCrashHandler.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKCrashHandler.o)
duplicate symbol 'OBJC_IVAR$_FBSDKCrashHandler._isTurnedOn' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKCrashHandler.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKCrashHandler.o)
duplicate symbol '_kFBSDKDeviceModel' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKCrashHandler.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKCrashHandler.o)
duplicate symbol '_kFBSDKCallstack' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKCrashHandler.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKCrashHandler.o)
duplicate symbol 'OBJC_IVAR$_FBSDKCrashHandler._bundle' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKCrashHandler.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKCrashHandler.o)
duplicate symbol '_kFBSDKMapingTable' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKCrashHandler.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKCrashHandler.o)
duplicate symbol 'OBJC_IVAR$_FBSDKJSONValue._rawObject' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKJSONValue.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKJSONValue.o)
duplicate symbol 'OBJC_IVAR$_FBSDKJSONField._rawObject' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKJSONValue.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKJSONValue.o)
duplicate symbol '_FBSDKCreateJSONFromString' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKJSONValue.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKJSONValue.o)
duplicate symbol 'OBJC_CLASS$_FBSDKJSONValue' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKJSONValue.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKJSONValue.o)
duplicate symbol 'OBJC_METACLASS$_FBSDKJSONValue' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKJSONValue.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKJSONValue.o)
duplicate symbol 'OBJC_CLASS$_FBSDKJSONField' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKJSONValue.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKJSONValue.o)
duplicate symbol 'OBJC_METACLASS$_FBSDKJSONField' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKJSONValue.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKJSONValue.o)
duplicate symbol 'OBJC_CLASS$_FBSDKLibAnalyzer' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKLibAnalyzer.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKLibAnalyzer.o)
duplicate symbol 'OBJC_METACLASS$_FBSDKLibAnalyzer' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKLibAnalyzer.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKLibAnalyzer.o)
duplicate symbol 'OBJC_CLASS$_FBSDKTypeUtility' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKTypeUtility.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKTypeUtility.o)
duplicate symbol 'OBJC_METACLASS$_FBSDKTypeUtility' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKTypeUtility.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKTypeUtility.o)
duplicate symbol 'OBJC_IVAR$_FBSDKURLSession._session' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKURLSession.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKURLSession.o)
duplicate symbol 'OBJC_CLASS$_FBSDKURLSession' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKURLSession.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKURLSession.o)
duplicate symbol 'OBJC_METACLASS$_FBSDKURLSession' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKURLSession.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKURLSession.o)
duplicate symbol 'OBJC_IVAR$_FBSDKURLSession._delegateQueue' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKURLSession.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKURLSession.o)
duplicate symbol 'OBJC_IVAR$_FBSDKURLSession._delegate' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKURLSession.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKURLSession.o)
duplicate symbol 'OBJC_IVAR$_FBSDKURLSessionTask._handler' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKURLSessionTask.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKURLSessionTask.o)
duplicate symbol 'OBJC_IVAR$_FBSDKURLSessionTask._loggerSerialNumber' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKURLSessionTask.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKURLSessionTask.o)
duplicate symbol 'OBJC_IVAR$_FBSDKURLSessionTask._task' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKURLSessionTask.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKURLSessionTask.o)
duplicate symbol 'OBJC_CLASS$_FBSDKURLSessionTask' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKURLSessionTask.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKURLSessionTask.o)
duplicate symbol 'OBJC_METACLASS$_FBSDKURLSessionTask' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKURLSessionTask.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKURLSessionTask.o)
duplicate symbol 'OBJC_IVAR$_FBSDKURLSessionTask._requestStartDate' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKURLSessionTask.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKURLSessionTask.o)
duplicate symbol 'OBJC_IVAR$_FBSDKURLSessionTask._requestStartTime' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKURLSessionTask.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKURLSessionTask.o)
duplicate symbol '_FBSDKAppEventCity' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)
duplicate symbol '_FBSDKAppEventCountry' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)
duplicate symbol '_FBSDKAppEventGender' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)
duplicate symbol '_FBSDKAppEventZip' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)
duplicate symbol '_FBSDKAppEventEmail' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)
duplicate symbol '_FBSDKAppEventDateOfBirth' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)
duplicate symbol '_FBSDKAppEventState' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)
duplicate symbol 'OBJC_CLASS$_FBSDKUserDataStore' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)
duplicate symbol 'OBJC_METACLASS$_FBSDKUserDataStore' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)
duplicate symbol '_FBSDKAppEventPhone' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)
duplicate symbol '_FBSDKAppEventFirstName' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)
duplicate symbol '_FBSDKAppEventLastName' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)
duplicate symbol '_FBSDKAppEventExternalId' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)
ld: 58 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Hi, months ago I use react-native-fbsdk
and everything is already set. And this week I found that lib is already archived and it says to use react-native-fbsdk-next
instead. So, I removed react-native-fbsdk
and install react-native-fbsdk-next
. I thought I don't need to follow any steps in Android Getting Started Guide because I already done that. I am able to run iOS but get an error in Android:
((my_directory_path))/node_modules/react-native-fbsdk-next/android/src/main/java/com/facebook/reactnative/androidsdk/FBProfileModule.java:16: error: constructor ReactContextBaseJavaModule in class ReactContextBaseJavaModule cannot be applied to given types;
public class FBProfileModule extends ReactContextBaseJavaModule {
^
required: ReactApplicationContext
found: no arguments
reason: actual and formal argument lists differ in length
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: ((my_directory_path))/node_modules/react-native-fbsdk-next/android/src/main/java/com/facebook/reactnative/androidsdk/Utility.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
FAILURE: Build failed with an exception.
Compilation failed; see the compiler error output for details.
I never change anything yet and get this error. Then I open my app/build.gradle and found my old code:
implementation 'com.facebook.android:facebook-core:5.+'
I tried to replace it with:
implementation 'com.facebook.android:facebook-android-sdk:[5,6)'
or
implementation 'com.facebook.android:facebook-core:[8,9)'
but it gives no effect. I also do manually linking but still the same. So can anyone help me to solve this please?
I decided to create this issue to have the plans about the future of this library in a way that others could help and not only wait for me or any other maintainer.
Also feel free to review any PR that is open or engage into the issues and that also needs some help either helping with questions, triage, or anything. I will be more than happy to include you as contributor and maintainer in this project if you would.
I see the future of this library moving towards a full typescript migration and a split the repository (monorepo into smaller parts of the FB SDK library, as the native dependencies are already splitter so we could also split it into specific libs under the same umbrela in order to improve the code splitting and saving for the app consumers of this library. (which leads us to smaller apps)
So, at this moment the main steps from my perspective are:
If you see any other major step that you believe should be included into this 5.0.0 milestone please comment below ;)
I am using logInWithPermissions from LoginManager class, but that promise just not resolve and I don't know why. I am using 4.1.0 version
Try execute logInWithPermissions from LoginManager
I am expecting that the promise solve and enter into .then() for continue the login process
System:
OS: macOS 11.2.3
CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
Memory: 225.44 MB / 8.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.16.1 - /usr/local/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 6.14.12 - /usr/local/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.10.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
Android SDK: Not Found
IDEs:
Android Studio: 4.1 AI-201.8743.12.41.7199119
Xcode: 12.5/12E262 - /usr/bin/xcodebuild
Languages:
Java: 16.0.1 - /usr/bin/javac
Python: 2.7.16 - /usr/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: Not Found
react-native: Not Found
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
App is crashing on app startup on iOS.
+[MPSwizzler swizzleSelector:onClass:withBlock:named:async:]: unrecognized selector sent to class 0x107ac4aa8
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[MPSwizzler swizzleSelector:onClass:withBlock:named:async:]: unrecognized selector sent to class 0x107ac4aa8'
*** First throw call stack:
(0x1a46bd9d8 0x1b8a40b54 0x1a45d2070 0x1a46c001c 0x1a46c1f8c 0x1040f1558 0x107a1e488 0x10a811528 0x10a8208a8 0x10a811528 0x10a81f994 0x1a463d5e0 0x1a4637a88 0x1a4636ba0 0x1bb39c598 0x1a6f282f4 0x1a6f2d874 0x10276caf8 0x1a4315568)
libc++abi.dylib: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[MPSwizzler swizzleSelector:onClass:withBlock:named:async:]: unrecognized selector sent to class 0x107ac4aa8'
terminating with uncaught exception of type NSException
App is currently only initializing the SDK.
import { Settings } from 'react-native-fbsdk-next';
Settings.initializeSDK();
System:
OS: macOS 11.2.3
CPU: (8) x64 Apple M1
Memory: 270.97 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.15.2 - /var/folders/py/_bdk2p1n13v1hc7fq1bhs2000000gn/T/yarn--1623436645989-0.8183305738118558/node
Yarn: 1.22.10 - /var/folders/py/_bdk2p1n13v1hc7fq1bhs2000000gn/T/yarn--1623436645989-0.8183305738118558/yarn
npm: 6.14.9 - ~/.nvm/versions/node/v14.15.2/bin/npm
Watchman: 4.9.0 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: Not Found // using 1.10.1 with bundler
SDKs:
iOS SDK:
Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
Android SDK:
API Levels: 28, 29, 30
Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.2
System Images: android-S | Google APIs ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 4.2 AI-202.7660.26.42.7351085
Xcode: 12.4/12D4e - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_292 - /usr/bin/javac
Python: 2.7.16 - /usr/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.13.1 => 16.13.1
react-native: ^0.63.3 => 0.63.4
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Related to the discussion of Limited Login and Profile PR.
It'll be great to have a separate method of the Profile module that can create the profile picture uri passing some parameters according to the various options that the SDK provides (i.e. width and height parameters)
Complete discussion here: https://github.com/thebergamo/react-native-fbsdk-next/pull/18#discussion_r621306439
Thanks in advice :)
Hi,
Can we configure response_type=code
to get authorization code?
After version of react-native-tracking-transparency (ATT) applied
Firebase Crashlytics reports crashes, such as attached images.
(FBSDKSKAdNetworkReporter.m line 92 / Fatal Exception: NSInvalidArgumentException)
I am currently using react-native-fbsdk-next. (FB SDK >= 9)
What should I do to fix the problem?
Thank you.
AppLink.fetchDeferredAppLink() is called, but app-ads-helper check failed.
AppLink.fetchDeferredAppLink().then(data => {
console.debug("Deferred App Link: " + data);
})
System:
OS: macOS 11.4
CPU: (12) x64 Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
Memory: 2.51 GB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.17.0 - /usr/local/bin/node
Yarn: Not Found
npm: 7.11.2 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.10.1 - /Users/pbg/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 12.5/12E262 - /usr/bin/xcodebuild
Languages:
Java: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.1 => 17.0.1
react-native: 0.64.0 => 0.64.0
react-native-macos: Not Found
After LoginManager.logInWithPermissions() catch an error on iOS:
Followed the documentation, and get into this error. Also cannot understand if i edited AppDelegate.m correctly?
Open facebook modal for sign in
All files involved:
AppDelegate.m
#import <Firebase.h>
#import "AppDelegate.h"
#import <React/RCTBridge.h>
#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>
#ifdef FB_SONARKIT_ENABLED
#import <FlipperKit/FlipperClient.h>
#import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h>
#import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h>
#import <FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h>
#import <SKIOSNetworkPlugin/SKIOSNetworkAdapter.h>
#import <FlipperKitReactPlugin/FlipperKitReactPlugin.h>
#import <FBSDKCoreKit/FBSDKCoreKit.h>
static void InitializeFlipper(UIApplication *application) {
FlipperClient *client = [FlipperClient sharedClient];
SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults];
[client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]];
[client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]];
[client addPlugin:[FlipperKitReactPlugin new]];
[client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]];
[client start];
}
#endif
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[FBSDKApplicationDelegate initializeSDK:launchOptions]; //<-- FacebookSDK initialize
if ([FIRApp defaultApp] == nil) { // <-- Firebase iOS SDK must be configured during the bootstrap phase of your application
[FIRApp configure];
}
#ifdef FB_SONARKIT_ENABLED
InitializeFlipper(application);
#endif
[[FBSDKApplicationDelegate sharedInstance] application:application // <-- Connect App Delegate
didFinishLaunchingWithOptions:launchOptions];
RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
moduleName:@"MeQRReviewApp"
initialProperties:nil];
if (@available(iOS 13.0, *)) {
rootView.backgroundColor = [UIColor systemBackgroundColor];
} else {
rootView.backgroundColor = [UIColor whiteColor];
}
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
UIViewController *rootViewController = [UIViewController new];
rootViewController.view = rootView;
self.window.rootViewController = rootViewController;
[self.window makeKeyAndVisible];
return YES;
}
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
#if DEBUG
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
#else
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
#endif
}
- (BOOL)application:(UIApplication *)application // <-- Connect App Delegate
openURL:(NSURL *)url
options:(nonnull NSDictionary<UIApplicationOpenURLOptionsKey, id> *)options
{
[[FBSDKApplicationDelegate sharedInstance] application:application
openURL:url
options:options];
return YES;
}
@end
Info.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>MeQRReviewApp</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>XXX</string>
</array>
</dict>
</array>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>localhost</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>fbXXX</string>
</array>
</dict>
</array>
<key>FacebookAppID</key>
<string>XXX</string>
<key>FacebookClientToken</key>
<string>XXX</string>
<key>FacebookDisplayName</key>
<string>XXX</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>fbapi</string>
<string>fbapi20130214</string>
<string>fbapi20130410</string>
<string>fbapi20130702</string>
<string>fbapi20131010</string>
<string>fbapi20131219</string>
<string>fbapi20140410</string>
<string>fbapi20140116</string>
<string>fbapi20150313</string>
<string>fbapi20150629</string>
<string>fbapi20160328</string>
<string>fbauth</string>
<string>fb-messenger-share-api</string>
<string>fbauth2</string>
<string>fbshareextension</string>
</array>
</dict>
<key>NSLocationWhenInUseUsageDescription</key>
<string></string>
<key>UIAppFonts</key>
<array>
<string>AntDesign.ttf</string>
<string>Entypo.ttf</string>
<string>EvilIcons.ttf</string>
<string>Feather.ttf</string>
<string>FontAwesome.ttf</string>
<string>FontAwesome5_Brands.ttf</string>
<string>FontAwesome5_Regular.ttf</string>
<string>FontAwesome5_Solid.ttf</string>
<string>Foundation.ttf</string>
<string>Ionicons.ttf</string>
<string>MaterialIcons.ttf</string>
<string>MaterialCommunityIcons.ttf</string>
<string>SimpleLineIcons.ttf</string>
<string>Octicons.ttf</string>
<string>Zocial.ttf</string>
<string>Fontisto.ttf</string>
</array>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
</dict>
</plist>
React Native: 0.64.2
react-native-fbsdk-next: 4.3.0
I followed the doc to implement the Facebook Login in my app. Everything works fine on emulator (iOS 14.1) but when i launch it on real device (iOS 14.4.2) I keep having this error :
NSErrorFailingURLStringKey=https://graph.facebook.com/v9.0 ... _kCFStreamErrorDomainKey=4
I also tried on another real device running iOS 14.4 and it works well.
Try to Login/Sign up with Facebook on iOS 14.4.2
Get a callback from https://graph.facebook.com
loginWithFacebook() {
LoginManager.logOut();
LoginManager.logInWithPermissions(['email']).then((result) => {
if (result.isCancelled) {
console.log('Login cancelled');
} else {
console.log(
'Login success with permissions: ' +
result.grantedPermissions.toString(),
);
AccessToken.getCurrentAccessToken().then(data => {
console.log(data.accessToken.toString());
console.log('result-->', result);
token = data.accessToken.toString();
this.initUser(data.accessToken.toString());
});
}
})
.catch((error) => {
console.log('Login fail with error: ' + error);
},
);
};
initUser(token) {
fetch('https://graph.facebook.com/v9.0/me?fields=email,name,friends&access_token=' + token)
.then((response) => response.json())
.then((json) => {
console.log('Profile', json);
let email = json.email;
let username = json.name.replace( /\s/g, '');
let password = this.makePassword(8);
this.register(email,username,password);
})
.catch(() => {
reject('ERROR GETTING DATA FROM FACEBOOK')
})
}
System: OS: macOS 11.2.3 CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz Memory: 19.27 MB / 16.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 14.16.0 - /usr/local/bin/node Yarn: 1.22.5 - ~/.yarn/bin/yarn npm: 7.6.3 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.10.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2 Android SDK: Not Found IDEs: Android Studio: 4.1 AI-201.8743.12.41.7199119 Xcode: 12.4/12D4e - /usr/bin/xcodebuild Languages: Java: javac 14 - /usr/bin/javac Python: 2.7.16 - /usr/bin/python npmPackages: @react-native-community/cli: Not Found react: 16.13.1 => 16.13.1 react-native: 0.63.4 => 0.63.4 react-native-macos: Not Found npmGlobalPackages: *react-native*: Not Found
Hello everyone!
I have an issue trying to use the library. When I execute LoginManager.logInWithPermissions
I get the following message error: [TypeError: null is not an object (evaluating 'LoginManager.logInWithPermissions')]
This is the content I see when I print LoginManager
{
"getDefaultAudience": [Function getDefaultAudience],
"getLoginBehavior": [Function getLoginBehavior],
"logInWithPermissions": [Function logInWithPermissions],
"logOut": [Function logOut],
"setDefaultAudience": [Function setDefaultAudience],
"setLoginBehavior": [Function setLoginBehavior]
}
import React from 'react';
import auth from '@react-native-firebase/auth';
import { StyleSheet, View, Text, TouchableOpacity } from 'react-native';
import { LoginManager, AccessToken } from 'react-native-fbsdk-next';
export default function App() {
const handlePress = async () => {
const result = await LoginManager.logInWithPermissions(['public_profile', 'email']);
if (result.isCancelled) {
throw 'User cancelled the login process';
}
const data = await AccessToken.getCurrentAccessToken();
if (!data) {
throw 'Something went wrong obtaining access token';
}
const facebookCredential = auth.FacebookAuthProvider.credential(data.accessToken);
return auth().signInWithCredential(facebookCredential);
}
return (
<View style={styles.container}>
<TouchableOpacity
style={styles.button}
onPress={handlePress}
>
<Text style={styles.buttonText}>
Click me!
</Text>
</TouchableOpacity>
</View>
)
}
react: 16.13.1
react-native: 0.63.4
Thanks!
I changed from react-native-fbsdk to react-native-fbsdk-next, following steps on comment section here #1 (comment). It works fine on iOS. On Android, when trying to build react-native app with "react-native run-android", i got the following error:
/node_modules/react-native-fbsdk-next/android/src/main/java/com/facebook/reactnative/androidsdk/FBProfileModule.java:16: error: constructor ReactContextBaseJavaModule in class ReactContextBaseJavaModule cannot be applied to given types;
public class FBProfileModule extends ReactContextBaseJavaModule {
^
required: ReactApplicationContext
found: no arguments
reason: actual and formal argument lists differ in length
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/myuser/Project/project-mobile/node_modules/react-native-fbsdk-next/android/src/main/java/com/facebook/reactnative/androidsdk/Utility.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
FAILURE: Build failed with an exception.
Compilation failed; see the compiler error output for details.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 15s
error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
/Users/myuser/Project/project-mobile/node_modules/react-native-fbsdk-next/android/src/main/java/com/facebook/reactnative/androidsdk/FBProfileModule.java:16: error: constructor ReactContextBaseJavaModule in class ReactContextBaseJavaModule cannot be applied to given types;
public class FBProfileModule extends ReactContextBaseJavaModule {
^
required: ReactApplicationContext
found: no arguments
reason: actual and formal argument lists differ in length
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/myuser/Project/project-mobile/node_modules/react-native-fbsdk-next/android/src/main/java/com/facebook/reactnative/androidsdk/Utility.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
FAILURE: Build failed with an exception.
Compilation failed; see the compiler error output for details.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 15s
at checkExecSyncError (child_process.js:629:11)
at execFileSync (child_process.js:647:13)
at runOnAllDevices (/Users/myuser/Project/project-mobile/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:94:39)
at buildAndRun (/Users/myuser/Project/project-mobile/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js:158:41)
at then.result (/Users/myuser/Project/project-mobile/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js:125:12)
at process._tickCallback (internal/process/next_tick.js:68:7)
Is it possibly related to this: facebook/react-native#21917 ?
Update from react-native-fbsdk on Android project, to react-native-fbsdk-next. Run "react-native run-android" in terminal.
To build Android project successfully and debug on a device.
System:
OS: macOS 11.2.1
CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Memory: 177.80 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 10.19.0 - ~/.nvm/versions/node/v10.19.0/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 6.13.4 - ~/.nvm/versions/node/v10.19.0/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.8.4 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
Android SDK:
API Levels: 29, 30
Build Tools: 28.0.3, 30.0.3
System Images: android-30 | Google APIs Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: 4.1 AI-201.8743.12.41.7199119
Xcode: 12.4/12D4e - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_282 - /usr/local/opt/openjdk@8/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 16.9.0 => 16.9.0
react-native: 0.61.5 => 0.61.5
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Hi, I am a newbie,
To integrate facebook I installed the react-native-fbsdk-next library, after which app crashed and then I uninstalled the library but still getting the errors as below:
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'Flipper-Glog' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'react-native-splash-screen' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'TOCropViewController' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'TOCropViewController-TOCropViewControllerBundle' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'AppAuth' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'GoogleSignIn' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'RNImageCropPicker' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'RNStompWS' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.4, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'Flipper-PeerTalk' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'boost-for-react-native' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'Flipper-DoubleConversion' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'RNShare' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'YogaKit' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'RNImageCropPicker-QBImagePicker' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'react-native-video' from project 'Pods')
** BUILD FAILED **
The following build commands failed:
CompileC /Users/deepak/Library/Developer/Xcode/DerivedData/churchee-eatfblnccklrpzgmakkkkslerztt/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-jsiexecutor.build/Objects-normal/x86_64/JSIExecutor.o /Users/deepak/Desktop/church/churchee_mobile_app_recent/node_modules/react-native/ReactCommon/jsiexecutor/jsireact/JSIExecutor.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/deepak/Library/Developer/Xcode/DerivedData/churchee-eatfblnccklrpzgmakkkkslerztt/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-jsiexecutor.build/Objects-normal/x86_64/JSINativeModules.o /Users/deepak/Desktop/church/churchee_mobile_app_recent/node_mo
** BUILD FAILED **
description: unable to build an app on IOS when i am using this library i.e.
react-native-fbsdk-next
----------error--------------
The following build commands failed:
PrecompileSwiftBridgingHeader normal x86_64
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
(2 failures)
Looks like a sizable batch of changes, at the least I think the initialization code will change, some of the other removals/deprecations will likely be hit as well
https://github.com/facebook/facebook-ios-sdk/blob/master/CHANGELOG.md#1200
This is a transfer of this original issue in the now archived repository: facebookarchive/react-native-fbsdk#712
There's no way to change the account you have signed in, even if you successfully log out of the application.
I also tried to clear the Safari cache in the Settings, and it still presents me with a "You previously logged in to [APP] with Facebook".
There should be a way to clear the webview cookies/cache.
This is likely a problem on the iOS Facebook SDK to be honest, but I wonder if there's anything we can do in our side to clear it manually, at least in development.
react-native run-ios
.System:
OS: macOS 11.3.1
CPU: (8) x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
Memory: 24.07 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.16.1
Yarn: 1.19.1
npm: 6.14.12
Watchman: Not Found
Managers:
CocoaPods: 1.10.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
Android SDK:
API Levels: 29, 30
Build Tools: 28.0.3, 29.0.2, 30.0.3
System Images: android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: 4.1 AI-201.8743.12.41.7199119
Xcode: 12.5/12E262 - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_282 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.1 => 17.0.1
react-native: 0.64.0 => 0.64.0
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
Hello everyone, i was trying to implement sample Facebook login flux following this github docs, and i get this error, if someone know how to deal with it, i was trying with expo managed and expo-facebook, and was getting the same error, maybe i lost in some app config from facebook, please i need D:, my app is 99% based in facebook sdk
Basicaly i follow the docs importing the LoginButton, configured appId following facebook android steps, and everytime i fall into this:
I cant reproduce with expo-snack, but basicaly is the normal use, using login button
https://snack.expo.io/@edusnown/logging-into-this-app-facebook-error
System:
OS: Linux 5.8 Ubuntu 20.10 (Groovy Gorilla)
CPU: (4) x64 Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
Memory: 1.25 GB / 15.42 GB
Shell: 5.0.17 - /bin/bash
Binaries:
Node: 14.16.0 - /usr/bin/node
Yarn: 1.22.5 - /usr/bin/yarn
npm: 7.14.0 - ~/www/imobiteste/node_modules/.bin/npm
Watchman: 20210516.170703.0 - /usr/local/bin/watchman
SDKs:
Android SDK: Not Found
IDEs:
Android Studio: 4.1 AI-201.8743.12.41.7199119
Languages:
Java: 11.0.11 - /usr/bin/javac
Python: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: 16.13.1 => 16.13.1
react-native: ~0.63.4 => 0.63.4
npmGlobalPackages:
react-native: Not Found
The error is super long but here goes:
info Found Xcode workspace "fbexampleapp.xcworkspace"
info Building (using "xcodebuild -workspace fbexampleapp.xcworkspace -configuration Debug -scheme fbexampleapp -destination id=A0B51C91-B51B-421B-813B-0C410615ABE9")
(node:93899) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening fbexampleapp.xcworkspace.
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace fbexampleapp.xcworkspace -configuration Debug -scheme fbexampleapp -destination id=A0B51C91-B51B-421B-813B-0C410615ABE9
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
CreateBuildDirectory /Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Intermediates.noindex (in target 'glog' from project 'Pods')
cd /Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods
builtin-create-build-directory /Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Intermediates.noindex
CreateBuildDirectory /Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products (in target 'glog' from project 'Pods')
cd /Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods
builtin-create-build-directory /Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products
PhaseScriptExecution Start\ Packager /Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Intermediates.noindex/fbexampleapp.build/Debug-iphonesimulator/fbexampleapp.build/Script-FD10A7F022414F080027D42C.sh (in target 'fbexampleapp' from project 'fbexampleapp')
cd /Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios
/bin/sh -c /Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Intermediates.noindex/fbexampleapp.build/Debug-iphonesimulator/fbexampleapp.build/Script-FD10A7F022414F080027D42C.sh
Connection to localhost port 8081 [tcp/sunproxyadmin] succeeded!
CompileC /Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Intermediates.noindex/fbexampleapp.build/Debug-iphonesimulator/fbexampleapp.build/Objects-normal/x86_64/AppDelegate.o /Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/fbexampleapp/AppDelegate.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'fbexampleapp' from project 'fbexampleapp')
cd /Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios
export LANG\=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target x86_64-apple-ios10.0-simulator -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -std\=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path\=/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror\=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror\=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror\=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DDEBUG\=1 -DCOCOAPODS\=1 -DDEBUG\=1 -DFBSDKCOCOAPODS\=1 -DFB_SONARKIT_ENABLED\=1 -DOBJC_OLD_DISPATCH_PROTOTYPES\=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -fobjc-abi-version\=2 -fobjc-legacy-dispatch -index-store-path /Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Index/DataStore -iquote /Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Intermediates.noindex/fbexampleapp.build/Debug-iphonesimulator/fbexampleapp.build/fbexampleapp-generated-files.hmap -I/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Intermediates.noindex/fbexampleapp.build/Debug-iphonesimulator/fbexampleapp.build/fbexampleapp-own-target-headers.hmap -I/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Intermediates.noindex/fbexampleapp.build/Debug-iphonesimulator/fbexampleapp.build/fbexampleapp-all-non-framework-target-headers.hmap -ivfsoverlay /Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Intermediates.noindex/fbexampleapp.build/Debug-iphonesimulator/fbexampleapp.build/all-product-headers.yaml -iquote /Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Intermediates.noindex/fbexampleapp.build/Debug-iphonesimulator/fbexampleapp.build/fbexampleapp-project-headers.hmap -I/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/include -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/CocoaAsyncSocket -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/DoubleConversion -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/FBLazyVector -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/FBReactNativeSpec -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/FBSDKCoreKit -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/FBSDKLoginKit -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/FBSDKShareKit -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/Flipper -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/Flipper-DoubleConversion -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/Flipper-Folly -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/Flipper-Glog -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/Flipper-PeerTalk -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/Flipper-RSocket -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/FlipperKit -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/RCT-Folly -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/RCTRequired -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/RCTTypeSafety -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/React-Core -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/React-RCTBlob -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/React-RCTText -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/React-callinvoker -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/React-cxxreact -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/React-jsi -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/React-jsiexecutor -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/React-jsinspector -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/React-perflogger -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/React-runtimeexecutor -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/ReactCommon -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/Yoga -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/YogaKit -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/glog -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/libevent -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/react-native-fbsdk-next -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/boost-for-react-native -I/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Private/React-Core -I/include -I/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Intermediates.noindex/fbexampleapp.build/Debug-iphonesimulator/fbexampleapp.build/DerivedSources-normal/x86_64 -I/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Intermediates.noindex/fbexampleapp.build/Debug-iphonesimulator/fbexampleapp.build/DerivedSources/x86_64 -I/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Intermediates.noindex/fbexampleapp.build/Debug-iphonesimulator/fbexampleapp.build/DerivedSources -F/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator -F/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/OpenSSL-Universal/Frameworks -F/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/OpenSSL -fmodule-map-file\=/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.modulemap -fmodule-map-file\=/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.modulemap -fmodule-map-file\=/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/FBSDKShareKit/FBSDKShareKit.modulemap -fmodule-map-file\=/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/YogaKit/YogaKit.modulemap -fmodule-map-file\=/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/FlipperKit/FlipperKit.modulemap -fmodule-map-file\=/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/React/React-Core.modulemap -fmodule-map-file\=/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/Headers/Public/yoga/Yoga.modulemap -MMD -MT dependencies -MF /Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Intermediates.noindex/fbexampleapp.build/Debug-iphonesimulator/fbexampleapp.build/Objects-normal/x86_64/AppDelegate.d --serialize-diagnostics /Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Intermediates.noindex/fbexampleapp.build/Debug-iphonesimulator/fbexampleapp.build/Objects-normal/x86_64/AppDelegate.dia -c /Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/fbexampleapp/AppDelegate.m -o /Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Intermediates.noindex/fbexampleapp.build/Debug-iphonesimulator/fbexampleapp.build/Objects-normal/x86_64/AppDelegate.o
Ld /Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/fbexampleapp.app/fbexampleapp normal (in target 'fbexampleapp' from project 'fbexampleapp') cd /Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target x86_64-apple-ios10.0-simulator -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.0/iphonesimulator -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/CocoaAsyncSocket -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/DoubleConversion -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/FBReactNativeSpec -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/FBSDKCoreKit -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/FBSDKLoginKit -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/FBSDKShareKit -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/Flipper -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/Flipper-DoubleConversion -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/Flipper-Folly -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/Flipper-Glog -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/Flipper-PeerTalk -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/Flipper-RSocket -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/FlipperKit -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/RCT-Folly -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/RCTTypeSafety -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/React-Core -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/React-CoreModules -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/React-RCTAnimation -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/React-RCTBlob -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/React-RCTImage -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/React-RCTLinking -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/React-RCTNetwork -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/React-RCTSettings -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/React-RCTText -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/React-RCTVibration -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/React-cxxreact -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/React-jsi -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/React-jsiexecutor -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/React-jsinspector -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/React-perflogger -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/ReactCommon -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/Yoga -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/YogaKit -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/glog -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/libevent -L/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/react-native-fbsdk-next -F/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator -F/Users/chaudhrytalha/Documents/xCodeProjects/SampleApp/fbexampleapp/ios/Pods/OpenSSL-Universal/Frameworks -F/Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/OpenSSL -filelist /Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Intermediates.noindex/fbexampleapp.build/Debug-iphonesimulator/fbexampleapp.build/Objects-normal/x86_64/fbexampleapp.LinkFileList -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Intermediates.noindex/fbexampleapp.build/Debug-iphonesimulator/fbexampleapp.build/Objects-normal/x86_64/fbexampleapp.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -lCocoaAsyncSocket -lDoubleConversion -lFBReactNativeSpec -lFBSDKCoreKit -lFBSDKLoginKit -lFBSDKShareKit -lFlipper -lFlipper-DoubleConversion -lFlipper-Folly -lFlipper-Glog -lFlipper-PeerTalk -lFlipper-RSocket -lFlipperKit -lRCT-Folly -lRCTTypeSafety -lReact-Core -lReact-CoreModules -lReact-RCTAnimation -lReact-RCTBlob -lReact-RCTImage -lReact-RCTLinking -lReact-RCTNetwork -lReact-RCTSettings -lReact-RCTText -lReact-RCTVibration -lReact-cxxreact -lReact-jsi -lReact-jsiexecutor -lReact-jsinspector -lReact-perflogger -lReactCommon -lYoga -lYogaKit -lc++ -lglog -llibevent -lreact-native-fbsdk-next -lstdc++ -lz -framework AudioToolbox -framework CFNetwork -framework JavaScriptCore -framework MobileCoreServices -framework OpenSSL -framework Security -framework UIKit -weak_framework Accelerate -weak_framework Accounts -weak_framework AdSupport -weak_framework AudioToolbox -weak_framework CoreGraphics -weak_framework Foundation -weak_framework QuartzCore -weak_framework Security -weak_framework Social -weak_framework StoreKit -weak_framework UIKit -ObjC -lc++ -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Intermediates.noindex/fbexampleapp.build/Debug-iphonesimulator/fbexampleapp.build/fbexampleapp.app-Simulated.xcent -lPods-fbexampleapp -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Intermediates.noindex/fbexampleapp.build/Debug-iphonesimulator/fbexampleapp.build/Objects-normal/x86_64/fbexampleapp.dat -o /Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/fbexampleapp.app/fbexampleapp ld: warning: Could not find or use auto-linked library 'swiftWebKit' ld: warning: Could not find or use auto-linked library 'swiftCoreMIDI' ld: warning: Could not find or use auto-linked library 'swiftUniformTypeIdentifiers' Undefined symbols for architecture x86_64: "_swift_FORCE_LOAD$_swiftUniformTypeIdentifiers", referenced from: _swift_FORCE_LOAD$swiftUniformTypeIdentifiers$_FBSDKShareKit in libFBSDKShareKit.a(Enums+Extensions.o) (maybe you meant: _swift_FORCE_LOAD$swiftUniformTypeIdentifiers$_FBSDKShareKit) "_swift_FORCE_LOAD$_swiftCoreMIDI", referenced from: _swift_FORCE_LOAD$swiftCoreMIDI$_FBSDKShareKit in libFBSDKShareKit.a(Enums+Extensions.o) (maybe you meant: _swift_FORCE_LOAD$swiftCoreMIDI$_FBSDKShareKit) "_swift_FORCE_LOAD$_swiftWebKit", referenced from: _swift_FORCE_LOAD$swiftWebKit$_FBSDKCoreKit in libFBSDKCoreKit.a(AccessToken.o) _swift_FORCE_LOAD$swiftWebKit$_FBSDKCoreKit in libFBSDKCoreKit.a(Permission.o) _swift_FORCE_LOAD$swiftWebKit$_FBSDKCoreKit in libFBSDKCoreKit.a(Settings.o) _swift_FORCE_LOAD$swiftWebKit$_FBSDKLoginKit in libFBSDKLoginKit.a(FBLoginButton.o) _swift_FORCE_LOAD$swiftWebKit$_FBSDKLoginKit in libFBSDKLoginKit.a(LoginConfiguration.o) _swift_FORCE_LOAD$swiftWebKit$_FBSDKLoginKit in libFBSDKLoginKit.a(LoginManager.o) _swift_FORCE_LOAD$swiftWebKit$_FBSDKShareKit in libFBSDKShareKit.a(Enums+Extensions.o) ... (maybe you meant: _swift_FORCE_LOAD$swiftWebKit$_FBSDKShareKit, _swift_FORCE_LOAD$swiftWebKit$_FBSDKCoreKit , _swift_FORCE_LOAD$swiftWebKit$_FBSDKLoginKit ) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'YogaKit' from project 'Pods') warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'Flipper-Glog' from project 'Pods') warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'boost-for-react-native' from project 'Pods') warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.4, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'Flipper-PeerTalk' from project 'Pods') warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'Flipper-DoubleConversion' from project 'Pods')
** BUILD FAILED **
The following build commands failed: Ld /Users/chaudhrytalha/Library/Developer/Xcode/DerivedData/fbexampleapp-cbjnhmdbrulusmcwnknqvzbhuegw/Build/Products/Debug-iphonesimulator/fbexampleapp.app/fbexampleapp normal
Here is the process I've followed:
I installed https://www.npmjs.com/package/react-native-fbsdk-next package as npm i react-native-fbsdk-next
which installed "^4.0.0" of this.
Then I opened the iOS project in XCode and added this in my info.plist
file:
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>fbMY_APP_ID</string>
</array>
</dict>
</array>
<key>FacebookAppID</key>
<string>MY_APP_ID</string>
<key>FacebookDisplayName</key>
<string>MY_APP_NAME</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>fbapi</string>
<string>fb-messenger-share-api</string>
<string>fbauth2</string>
<string>fbshareextension</string>
</array>
...
#import <FBSDKCoreKit/FBSDKCoreKit.h>
...
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
...
[[FBSDKApplicationDelegate sharedInstance] application:application
didFinishLaunchingWithOptions:launchOptions];
return YES;
}
- (BOOL)application:(UIApplication *)app
openURL:(NSURL *)url
options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options
{
if ([[FBSDKApplicationDelegate sharedInstance] application:app openURL:url options:options]) {
return YES;
}
return NO;
}
...
Then when I run the app react-native run-ios
I get the above-mentioned long error.
It should run, but I'm not. even able to run the app. I tried starting a fresh project and running that project first and then implementing all the steps like installing the package, installing pods but then when I click on the button I was getting null is not an object (evaluating LoginManager.logInWithReadPermissions)
but the moment I did react-native run-ios
it started giving this long error again so after installing the package and installing pods if I do react-native run-ios
then this long error occurs otherwise that null is not an obj...
one shows when I press the login button.
In my App.js I have this code:
import React from 'react';
import { Button, Text, View } from 'react-native';
import { AccessToken, LoginManager } from 'react-native-fbsdk-next'
function App(props) {
return (
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
<Text>Login with facebook example</Text>
<Button title={"Login with Facebook"} onPress={() => {
LoginManager.logInWithPermissions(["public_profile", "email"]).then(
function (result) {
if (result.isCancelled) {
alert("Login Cancelled " + result)
} else {
alert("Login success with permisssions: " + result.grantedPermissions.toString()
);
}
},
function (error) {
alert("Login failed with error: " + error);
}
);
}} />
</View>
);
}
export default App;
I'm using VSCode on MacOS.
Node version is: v15.13.0
NPM version is: 7.8.0
React-Native version: 0.64.0
react-native-fbsdk
had types supported but this package does not. Typically the author of the library has to add types. I'd be happy to assist in making this enhancement.
Exception App id not found ,
the same codes working fine with fbsdk but when i migrate to fbsdk next i got this error on ios
add react native fbsdk next to your project and try to use it
it should prompt the login page
Xcode: 12.5
React-Native : 64.2
System:
OS: macOS 11.4
CPU: (8) x64 Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
Memory: 67.70 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 16.3.0 - /usr/local/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 7.15.1 - /usr/local/bin/npm
Watchman: 2021.06.07.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.10.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
I'm having this issue: #20
@mikehardy has provided a possible solution how ever he has not given me enough details to work out how to get things working, so I'm starting a new thread as that one is locked.
I have tried updating the react-native-fbsdk-next.podspec to: https://pastebin.com/8BDx9r84
but I am still getting the following errors: https://pastebin.com/X8yZbpCh
I also tried changing the version on the Podfile.lock to 9.2.0.
Can any one provide more information on how to resolve this issue?
After successfully login with the Facebook login dialog, the result doesn't return the actual use credentials.
Instead it returns: {"declinedPermissions": [], "grantedPermissions": ["public_profile", "email"], "is
Cancelled": false}
LoginManager.logInWithPermissions(["public_profile"]).then(
function(result) {
console.log(result)
//I get this in the console: {"declinedPermissions": [], "grantedPermissions": ["public_profile", "email"], "is
Cancelled": false}
}
},
);
I basically just switched from react-native-fbsdk to this package, and didn't change anything. However, as soon as I started the app, I ran into this exception: https://sentry.io/share/issue/57d3875ef958442e8a3e90b2a2202934/ . The app didn't crash tho and since i'm not using any of the UI elements provided by fbsdk, so I'm not sure if I should be worried about the exception.
(Sentry crash report shared above)
Hello.
facebookarchive/react-native-fbsdk#813 (comment)
The same problem occurs as the above issue.
Is there any solution?
When i try to get email in android, i always get response null
check this issue facebookarchive/react-native-fbsdk#785
FBSDK not work when facebook app is installed
Should I add SkAdNetwork ID to Info.plist according to Apple's documentation https://developer.apple.com/documentation/storekit/skadnetwork/configuring_a_source_app?fbclid=IwAR0dw0ik0R_rytuvr3xfy3tqYpVsxjkj3ii6lwz9IxydqU_Li2zyGwkMCPs in order to track source of installation?
It is a but unclear from README file
I followed every step on guide and it seemed like everything was fine since I was getting no build errors.
But when I press on the log in button Chrome opens for a second and then immediately crushes.
Any suggestions?
string.xml :
<resources>
<string name="app_name">peraapp</string>
<string name="facebook_app_id">id</string>
<string name="fb_login_protocol_scheme">id</string>
</resources>
android.manifest :
<meta-data android:name="com.facebook.sdk.ApplicationId"
android:value="@string/facebook_app_id"/>
<activity android:name="com.facebook.FacebookActivity"
android:configChanges=
"keyboard|keyboardHidden|screenLayout|screenSize|orientation"
android:label="@string/app_name" />
<activity
android:name="com.facebook.CustomTabActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="@string/fb_login_protocol_scheme" />
</intent-filter>
</activity>
build.gradle:
buildscript {
ext {
buildToolsVersion = "29.0.3"
minSdkVersion = 21
compileSdkVersion = 29
targetSdkVersion = 29
ndkVersion = "20.1.5948944"
}
repositories {
mavenCentral()
google()
jcenter()
}
dependencies {
classpath("com.android.tools.build:gradle:4.1.0")
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
}
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}
google()
jcenter()
maven { url 'https://www.jitpack.io' }
}
}
Somebody knows a way to skip this?
After setting up react-native-fbsdk-next, I get the error Module 'FacebookCore' not found in SceneDelegate.m.
yarn ios
The build should succeed.
info Fetching system and libraries information...
System:
OS: macOS 11.2.3
CPU: (8) x64 Intel(R) Core(TM) i7-1068NG7 CPU @ 2.30GHz
Memory: 89.91 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 15.13.0 - /var/folders/4l/5q_1bbc93mb221kpmsz41jth0000gn/T/yarn--1617791043494-0.5877670075367989/node
Yarn: 1.22.10 - /var/folders/4l/5q_1bbc93mb221kpmsz41jth0000gn/T/yarn--1617791043494-0.5877670075367989/yarn
npm: 7.7.6 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.10.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
Android SDK:
API Levels: 24, 29, 30
Build Tools: 28.0.3, 29.0.2, 30.0.2, 30.0.3, 31.0.0
System Images: android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: 4.1 AI-201.8743.12.41.7199119
Xcode: 12.4/12D4e - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_282 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: ^17.0.2 => 17.0.2
react-native: ^0.64.0 => 0.64.0
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found`
I check in node_modules/react-native-fbsdk-next/types/FBAppEventsLogger.d.ts
that AppEventParam can only send a single ContentID as a String
I want to use Dynamic Ads... According to this https://business.facebook.com/business/help/606577526529702?id=1205376682832142 I need to send content_ids
which can be a single content ID or an array of content IDs
And the problem is I can never send an array at all. I use Test Events in Pixels Event Manager to get realtime log. Every time I send an array, VIewItem Event or any other events is not logged.
This picture shows the wrong format. So, JSON.stringify
is not a workaround for this.
This library can send an array data type
"react": "16.9.0",
"react-native": "0.61.1",
"react-native-fbsdk-next": "^4.2.0",
I have an implementation, but app crash when I try to do anything. Please check it out the video
Facebook Analytics is going away:
https://www.facebook.com/business/help/966883707418907
It should affect on AppEventsLogger i suppose. Right?
Facebook says there is an alternative like "Events Manager"
Can we use it here?
Undefined symbols for architecture x86_64:
"_swift_FORCE_LOAD$_swiftUniformTypeIdentifiers", referenced from:
_swift_FORCE_LOAD$swiftUniformTypeIdentifiers$_FBSDKShareKit in libFBSDKShareKit.a(Enums+Extensions.o)
(maybe you meant: _swift_FORCE_LOAD$swiftUniformTypeIdentifiers$_FBSDKShareKit)
"_swift_FORCE_LOAD$_swiftCoreMIDI", referenced from:
_swift_FORCE_LOAD$swiftCoreMIDI$_FBSDKShareKit in libFBSDKShareKit.a(Enums+Extensions.o)
(maybe you meant: _swift_FORCE_LOAD$swiftCoreMIDI$_FBSDKShareKit)
"_swift_FORCE_LOAD$_swiftWebKit", referenced from:
_swift_FORCE_LOAD$swiftWebKit$_FBSDKCoreKit in libFBSDKCoreKit.a(AccessToken.o)
_swift_FORCE_LOAD$swiftWebKit$_FBSDKCoreKit in libFBSDKCoreKit.a(Permission.o)
_swift_FORCE_LOAD$swiftWebKit$_FBSDKCoreKit in libFBSDKCoreKit.a(Settings.o)
_swift_FORCE_LOAD$swiftWebKit$_FBSDKLoginKit in libFBSDKLoginKit.a(FBLoginButton.o)
_swift_FORCE_LOAD$swiftWebKit$_FBSDKLoginKit in libFBSDKLoginKit.a(LoginManager.o)
_swift_FORCE_LOAD$swiftWebKit$_FBSDKShareKit in libFBSDKShareKit.a(Enums+Extensions.o)
(maybe you meant: _swift_FORCE_LOAD$swiftWebKit$_FBSDKLoginKit, _swift_FORCE_LOAD$swiftWebKit$_FBSDKShareKit , _swift_FORCE_LOAD$swiftWebKit$_FBSDKCoreKit )
ld: symbol(s) not found for architecture x86_64
react-native => 0.62.1
Xcode Version 12.4
I have tried this [https://github.com/facebookarchive/react-native-fbsdk/issues/794] solution but nothing works
When running the example app on an iOS simulator (in example/ios
), the example app fails to mount & the app crashes after entering an infinite loop with the error:
Invariant Violation: No callback found with cbID 2903 and callID 1451 for module <unknown>.
npm install && npx pod-install
)npm example:ios
The example app builds & runs successfully
System:
OS: macOS 10.15.7
CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
Memory: 1.87 GB / 32.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 12.16.3 - /usr/local/bin/node
Yarn: 1.22.5 - ~/.yarn/bin/yarn
npm: 7.10.0 - ~/git/sw/react-native-fbsdk-next/node_modules/.bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.10.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
Android SDK: Not Found
IDEs:
Android Studio: 4.1 AI-201.8743.12.41.6858069
Xcode: 12.4/12D4e - /usr/bin/xcodebuild
Languages:
Java: 11.0.9.1 - /usr/bin/javac
Python: 3.7.7 - /opt/anaconda3/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.13.1 => 16.13.1
react-native: ^0.63.3 => 0.63.4
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
In native code to disable tracking as below,
Settings.setAdvertiserTrackingEnabled(false)
Please let me know how to disable app tracking in react native with the IOS platform, To avoid prompting the run time permission for request tracking in IOS 14
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.