Swift SDK Version

SDKSettings

publicstructSDKSettings
Provides access to settings and configuration used by the entire SDK.
  • Facebook App ID used by the SDK. Default value is read from the application’s Info.plist under FacebookAppId key.

    Declaration

    Swift
    publicstaticvarappId:String{getset}
  • The default url scheme suffix used for sessions. Default value is read from the applicaiton’s Info.plist under FacebookUrlSchemeSuffix key.

    Declaration

    Swift
    publicstaticvarappURLSchemeSuffix:String{getset}
  • The client token used by the SDK. It’s is required for certain API calls when made anonymously aka without a user-based access token.
    Default value is read from the application’s Info.plist under FacebookClientToken key.

    Declaration

    Swift
    publicstaticvarclientToken:String?{getset}
  • Facebook Display Name used by the SDK. Default value is read from the application’s Info.plist under FacebookDisplayName key.

    Declaration

    Swift
    publicstaticvardisplayName:String?{getset}
  • Facebook sudomain name used by the SDK. This can be used to add the subdomain for all network requests that SDK is sending, e.g. setting this to "beta" will make all graph requests to be sent to graph.beta.facebook.com. Default value is read from the application’s Info.plist under FacebookDomainPart key.

    Declaration

    Swift
    publicstaticvarfacebookSubdomain:String?{getset}
  • The quality of JPEG images sent to Facebook from the SDK. Default value is 0.9.

    Declaration

    Swift
    publicstaticvarJPEGCompressionQuality:Double{getset}
  • If enabled, data such as that generated through AppEventsLogger and sent to Facebook should be restricted from being used for other than analytics and conversions. Defaults to false. This value is stored on the device and persists across app launches.

    Declaration

    Swift
    publicstaticvarlimitedEventAndDataUsage:Bool{getset}