FBSDK: Cannot read property loginwithreadpermissions of undefined

I just resolved the same error. For some reason "react-native link react-native-fbsdk" had finished for Android but not ios.

rnpm-install info Android module react-native-fbsdk is already linked rnpm-install info Linking react-native-fbsdk ios dependency rnpm-install info iOS module react-native-fbsdk has been successfully linked

Try rerunning and make sure you are linking with libRCTFBSDK.a


Following @Greg Cockroft's answer, I've noticed that I was not being able to include "libRCTFBSDK.a" on my project's "Link Binary With Libraries" because I was not including the "RCTFBSDK" library project.

So if you are on same situation do the following missing steps:

  1. Add (or drag using Finder) "/node_modules/react-native-fbsdk/ios/RCTFBSDK.xcodeproj" under your Xcode project "Libraries" group.
  2. Build "RCTFBSDK.xcodeproj" or your entire project.
  3. Add "libRCTFBSDK.a" on your project settings, under "Link Binary With Libraries".
  4. Compile/run your app. Now if you have the right JS login code, you should be able to login via Facebook's screen.

Use the function LoginManager.logInWithPermissions(['public_profile', 'email']);