Closed Deodes closed 3 years ago
That looks like a pretty thorough error message. How did it go when you added the app id to info.plist ?
@mikehardy as in the error picture (I'm just hiding the app IDs, but they are correct, double checked), and this issue just on iOS, Android works well. Maybe I should show the entire error code?
I don't know. Perhaps something about the build system means your not running the code you think you're running? 'npx react-native-clean-project'?
Same issue here.
For anyone else paying attention: this is not a universal problem. Works fine for me :shrug: not sure what the problem is but the module appears to work.
We came from a previous version of the SDK (it was actually before FB deprecated it so we weren't using next yet) and as such we were missing the SDK initialization steps.
@Deodes https://github.com/thebergamo/react-native-fbsdk-next#sdk-initialization
But...it's explicit in the docs here that you must initialize the SDK on iOS now? I am definitely doing that in my project, is that common amongst the people crashing here - that you are not initializing?
https://github.com/thebergamo/react-native-fbsdk-next#sdk-initialization
@mikehardy @biztems added native facebookSDK initialization (AppDelegate.m), but still have the same problem. Maybe we need to compare our "AppDelegate.m" files?
Solved a problem. Everything that was in the AppDelagate.m
file should have been at the top level inside <dict></dict>
, in my case it was inside nested<dict></dict>
🐛 Bug Report
After LoginManager.logInWithPermissions() catch an error on iOS:
To Reproduce
Followed the documentation, and get into this error. Also cannot understand if i edited AppDelegate.m correctly?
Expected Behavior
Open facebook modal for sign in
Code Example
All files involved:
AppDelegate.m
Info.plist
Environment
React Native: 0.64.2 react-native-fbsdk-next: 4.3.0