Working with iOS Facebook SDK 3.0, it needs to define FacebookAppID and the related URL Scheme with it on the info.plist of the app. I want to define these remotely (request to my own server for app id). So 2 different questions:
1.1 No you cannot alter the Info.plist file at runtime.
1.2 No you cannot load another plist file to override settings in Info.plist.
2.1 Yes, you can define FacebookApID without altering Info.plist file, by calling [FBSettings setDefaultAppID:@"Your Facebook App ID"];
See the source code of FBSettings.h in Facebook iOS SDK.
2.2 No, URL Scheme must be defined in Info.plist so iOS can recognize it. I believe that the URL Scheme is read by iOS when installing your app, and it is cached elsewhere in system. Even if you can alter your Info.plist, the system won't pick up your new URL Scheme. But don't worry, there's a workaround for Facebook authentication without using URL schemes! We can force the Facebook iOS SDK to use UIWebView for login, see this stackoverflow question.
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