19 thoughts on “React Native Facebook Integration Example using Facebook SDK”

  1. Once we logout, then trying to login again is causing App Crash. I am not able to get any logs in console about this also. Please help me out with this.

  2. i facing an issue in release apk of login error. hashkey is not matching . but i have already generated release key and add into my fb account .

  3. “i facing an issue in debug apk of login error. hashkey is not matching . but i have already generated release key and add into my fb account .”

    i have same issue, i followed your updated post. Still i am not able to sign in successfully.

  4. I tried implementing FB SDK in an empty project. I get errors while making build.

    Error: 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. Run CLI with –verbose flag for more details.Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
    E:\ReactNative_files\test\android\app\build\generated\rncli\src\main\java\com\facebook\react\PackageList.java:51: error: constructor FBSDKPackage in class FBSDKPackage cannot be applied to given types;
    new FBSDKPackage()
    ^
    required: CallbackManager
    found: no arguments
    reason: actual and formal argument lists differ in length
    1 error

    FAILURE: Build failed with an exception.

  5. In an iOS environment
    It’s not like I’m already logged in to a webpage.
    By linking the Facebook app that is already logged in.
    I want to log in. What should I do?

  6. Hi, thank you very much for the post and steps.
    I am facing an issue after following correctly all the steps above.
    what can i do?
    Help, please.

    AppDelegate.m:13:9: fatal error: ‘FBSDKCoreKit/FBSDKCoreKit.h’ file not found
    #import

  7. Invariant Violation: requireNativeComponent: “RCTFBLoginButton” was not found in the UIManager.

    This error is located at:
    in RCTFBLoginButton (atFBLoginButton.js:105)
    in LoginButton (at App.js:52)

  8. Logout is not working as expected. After clicking logout button, I wanted to use another facebook account but there is no options for entering new fb account. can you suggest on this issue.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.