facebook-ios-sdk
facebook-ios-sdk copied to clipboard
Set appID dynamically from the iOS application
Checklist before submitting a bug report
- [x] I've updated to the latest released version of the SDK
- [X] I've searched for existing GitHub issues
- [X] I've looked for existing answers on Stack Overflow, the Facebook Developer Community Forum and the Facebook Developers Group
- [X] I've read the Code of Conduct
- [X] This issue is not security related and can safely be disclosed publicly on GitHub
Xcode version
13.4.1
Facebook iOS SDK version
14.1.0
Dependency Manager
CocoaPods
SDK Framework
Core
Goals
I need to change the Facebook application ID dynamically from the iOS app.
Expected results
Should use the right Facebook application as per the Facebook application ID which has been set dynamically.
Actual results
Can't able to set the app ID dynamically.
Steps to reproduce
No response
Code samples & details
private func setAppId(result: @escaping FlutterResult, appId: String) {
let _sdkSettings = FBSDKCoreKit.Settings()
_sdkSettings.appID = appId
_sdkSettings.displayName = "Another Pages"
// FBSDKCoreKit.Settings.appID = appId
// FBSDKCoreKit.Settings.displayName = "Another Pages"
result(nil)
}
any update?