react-native-facebook-login
react-native-facebook-login copied to clipboard
InvalidOperationException', reason: 'App ID not found. Add a string value with your app ID for the key FacebookAppID to the Info.plist
Thread 1 SIGABRT error in main.m on click of FB login button . Here is my info.plist:
` <key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>fb1795498791*****</string>
</array>
</dict>
</array>
<key>FacebookAppID</key>
<string>1795498791*****</string>
<key>FacebookDisplayName</key>
<string>XXXXX</string>
</dict>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>fbapi</string>
<string>fb-messenger-api</string>
<string>fbauth2</string>
<string>fbshareextension</string>
<key>NSCameraUsageDescription</key>
<string>To access the camera</string>
<key>NSContactsUsageDescription</key>
<string>to read the contacts</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>to get user location</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>To access the images</string>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>`
http://stackoverflow.com/questions/27837935/facebook-sdk-fbsession-no-appid-provided
@lwhiteley it says we have to set our facebook app id in Project's info.plist and not in ProjectTests' info.plist, I have done the same . Still getting this error . Here is my ProjectTests' info.plist:
`<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>`
Did you ever figure out the problem?