When I open a FBSession (FB SDK 3.0), I get this error:
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 know I can add a value for FacebookAppID in the .plist, but what method should I use to init the FBSession with an AppId? I have tried using [FBSession setDefaultAppID] but that doesn't seem to do it.
This seems to work for me:
[FBSettings setDefaultAppID: @"123456789"];
The new version of SDK doesn't accept
- (id)initWithAppId:(NSString *)app_id
andDelegate:(id<FBSessionDelegate>)delegate;
so Create a FacebookAppID in the info.plist file and give the app id as string input.
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