-
Notifications
You must be signed in to change notification settings - Fork 908
FacebookSdk.sdkInitialize. The sdk has not been initialized #485
Comments
I had this same error when I was first configuring this, I don't know what it was, but if you follow https://developers.facebook.com/docs/facebook-login/android there's some things that are different, then what is listed here in the setup process. |
@M1K3Yio thanks a lot, could you maybe point out what is required to make it work? |
@gazedash add
I think this should be in the README along with the other instructions |
This helped me: https://stackoverflow.com/a/47463456/8577483 |
@Asim13se Hm, Android Studio complains about |
Here's a solution that worked for me - https://stackoverflow.com/a/51651988/7902116 |
Open AndroidManifest.xml insert into
Open strings.xml add |
@SamiChab Your solution did work for me.. Quoting from Stack Overflow:
|
I've following the AndroidManifest.xml and strings.xml and getting the same error
react-native-fbsdk 1.0.4 |
Despite react-native-fbsdk@1.0.4 |
@betranthanh how I could get my |
Damit! I was not enclosing applicationId in double-quotes, which was causing the error for me |
make sure you paste this as it is in your manifest file This error happens when the string couldn't be found in the string under the name facebook_app_id. |
putting below code in string.xml file will fix the issue
suppose your fb-app-id is 012345678912345
from docs https://developers.facebook.com/docs/facebook-login/android Look for point no 4 Edit Your Resources and Manifest after putting code in string.xml file we have to init in AndroidManifest.xml file as
under the application tag
then rebuild the whole app & run hope this will be fixed your issue |
I dont know is this rigtt to issue here, |
Wow, I'm just amazed how idiot I am, I've lost hours on this... In case someone did it like me: I've had it like this:
Which is totally wrong, it should be literally: |
Thanks! |
Environment
Run
react-native info
in your terminal and paste its contents here.Description
Run Sample react-native project and this error appears
Describe your issue in detail. Include screenshots if needed. If this is a regression, let us know.
Reproducible Demo
Let us know how to reproduce the issue. Include a code sample, share a project, or share an app that reproduces the issue using https://snack.expo.io/.
Please follow the guidelines for providing a MCVE: https://stackoverflow.com/help/mcve
The text was updated successfully, but these errors were encountered: