Troubleshooting Facebook Login IOS for React Native

Derry Berni Cahyady
1 min readSep 10, 2017

--

If you got error

undefined is not an object (evaluating ‘LoginManager.loginWithReadPermissions’)

May be it can help you

Troubleshooting

If you get a build error stating that one of the Facebook SDK files was not found, such as “FBSDKLoginKit/FBSDKLoginKit.h file not found,” check three things:

  • Verify that the Facebook SDK frameworks are installed in ~/Documents/FacebookSDK.
  • Verify that FBSDK[Core, Login, Share]Kit.framework show up in the Link Binary with Librariessection of your build target’s Build Phases.
  • Verify that ~/Documents/FacebookSDK is in the Framework Search Path of your build target's Build Settings.

If you can’t get libRCTFSDK.a i think you failed when linking project react native

Fix React Link

npm install react-native-fbsdk@0.6.0 — save
react-native link react-native-fbsdk

https://github.com/facebook/react-native/issues/10032

--

--

Derry Berni Cahyady
Derry Berni Cahyady

Written by Derry Berni Cahyady

Data & Security Enthusiast | Software Engineer

No responses yet