From Facebook Developer Wiki
public static void init (object appSettings)
Description
Initialize Facebook app
Parameters
| Required | Name | Type | Description |
| required | appSettings | object | A dictionary of application settings.
Required key/value pairs are:
apiKey: string -- API key for your Facebook application
xdChannelUrl:string -- Relative URL to the cross-domain channel page located on app server.
Optional key/value pairs are:
reloadIfSessionStateChanged: bool -- If the value is true, we will monitor changes in session state and reload current page if session state changes. This option is convenient for application that needs to reload page whenever session state change in order to generate different content from server side.
ifUserConnected: This parameter can be either a function that takes a string argument for uid uor string to a url. If a function is passed, then the function would be invoked if the user is connected. If a string is passed, then the browser will be redirected to the url specified in the string if the user is connected. Note this key and reloadIfSessionStateChanged cannot be specified at the same time.
ifUserNotConnected: This parameter can be either a function that takes a string argument for uid uor string to a url. If a function is passed, then the function would be invoked if the user is not connected. If a string is passed, then the browser will be redirected to the url specified in the string if the user is not connected. Note this key and 'reloadIfSessionStateChanged' cannot be specified at the same time.
doNotUseCachedConnectState: bool -- By default, we check cookie for cached connect state. If this value is true, we will clear cached cookie value and not use it.
debugLogLevel: int -- Specify debug logging level. This is same as setting FB.FBDebug.logLevel |
|
|---|
Back to class public sealed FB.Facebook