facebook-ios-sdk icon indicating copy to clipboard operation
facebook-ios-sdk copied to clipboard

Set appID dynamically from the iOS application

Open md-abdul-halim-rafi opened this issue 2 years ago • 1 comments

Checklist before submitting a bug report

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)
    }

md-abdul-halim-rafi avatar Aug 12 '22 15:08 md-abdul-halim-rafi

any update?

shadyk avatar Sep 21 '23 11:09 shadyk