Reputation: 3
I just implemented Facebook SDK on Cordova 2.3 but you know the most important change looks like in Cordova 2.3 that they changed info.plist to config.xml. On my previous version I had implemented my FacebookAppID in my .plist file but now altough I generated a new config.xml with "bin/cordova_plist_to_config_xml" script and I wrote my appid in my config.xml as a preference name="FacebookAppID" xcode returns me that error:
"* 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'"
So is there anyone who knows to get over this issue?
Thanks, Burak
Upvotes: 0
Views: 604
Reputation: 5647
The config.xml
only replaces the Cordova.plist
, not the <AppName>-Info.plist
where you place the FacebookID.
The <AppName>-Info.plist
is still there and in use.
Upvotes: 1