I want to integrate with Facebook login SDK in my iOS project. The problem is I got this error message during launching the app.
2015-01-08 18:33:06.591 XXXXX[24994:2533100] *** Terminating app due to uncaught exception 'com.facebook.sdk:InvalidOperationException', reason: 'FBSession: No AppID provided; either pass an AppID to init, or add a string valued key with the appropriate id named FacebookAppID to the bundle *.plist'
I already include this line into my info.plist
but it is still not working.
info.list
<key>FacebookAppID</key>
<string><1025024xxxxxxxx></string>
<key>FacebookDisplayName</key>
<string>XXXXXX</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>fb<1025024xxxxxxxx></string>
</array>
</dict>
</array>
I suspect it has not detected my Facebook ID. I'm using Xcode6.1.
There is two info.plist
file in your project with same name. one folder for YourProjectTests
in which info.plist
file and other YourProject
is also info.plist
file.
Two plist file :
You have to set your FacebookAppID
in YourProject
info.plist file, but not set YourProjectTests
info.plist
This error is occurs because of YourProjectTests
in which info.plist
file setting FacebookAppID
Add Your FacebookAppID
inabove info.plist
file as above image.
Otherwise set also FacebookAppID
as below.
if you have already added App ID in info.plist and getting crash then make sure you have added this single line code in AppDelegate Class didFinishLaunchingOption
//Facebook setup
ApplicationDelegate.shared.application(application, didFinishLaunchingWithOptions: launchOptions)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With