undefined is not an object (evaluating 'LoginManager.loginWithPermissions')

Viewed 3719

Trying simple react-native app with facebook SDK, getting the following error:

undefined is not an object (evaluating 'LoginManager.loginWithPermissions')

Steps to reproduce:

react-native init app

react-native install react-native-fbsdk

react-native link react-native-fbsdk

Facebook guide https://developers.facebook.com/docs/ios/getting-started/

react-native run-ios

error

Any suggestions?

I think that react-native-fbsdk doesnt links with xcode project correctly...How to check it? I don't have any exceptions while linking:

21:17 $ react-native link react-native-fbsdk Scanning 559 folders for symlinks in /Users/denis/Projects/app/node_modules (7ms)

It looks like libRCTFBSDK.a is not included into the project, how to include it manually?

1 Answers
Related