Fatal Exception: SDK not initialized
Hello Guys,
Just had an app hit production, and we're getting this crash:
Fatal Exception: java.lang.RuntimeException: Unable to resume activity {com.boundless.jawaker/com.facebook.FacebookActivity}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=129742, result=-1, data=Intent { (has extras) }} to activity {com.boundless.jawaker/com.facebook.FacebookActivity}: The SDK has not been initialized, make sure to call FacebookSdk.sdkInitialize() first.
This is not happening a lot(till now at least), and did not happen during the whole dev time, so its kind of weird. Ive googled a bit, and seems this is related to the SDK not being initialised before putting fb components or if user cancels the login flow and onCancel is not handled. But im not using the loginButton, im just using the FBLoginManager. And the code written already handles all callback cases.
Any thoughts on this?
HI i am also facing same issue. anyone found solution for this ??? Emulator is working but in real device crashing with above error
use this tutorial to initialize fbsdk https://tylermcginnis.com/installing-the-facebook-sdk-into-a-react-native-android-and-ios-app/