FB.Facebook

Description

This contains static settings for the Facebook API client and cross-domain channels.

Methods

add_initCalled(Function value)

Subscribe to event 'initCalled'.

get_baseDomain()

Gets the base domain for your Connect site.

get_initialized()

Get status of Facebook initialization as a Waitable object.

get_isInCanvas()

Checks if the current page is inside the Facebook canvas or is an external Web page.

get_isInConnect()

Checks if the current page is on your Facebook Connect site.

get_sessionState()

DEPRECATED This property is replaced by sessionWaitable and will be removed soon.

get_sessionWaitable()

Get API session as a Waitable object.

init(String apiKey,  String xdChannelUrl,  Object appSettings)

Initializes Facebook Connect for your implementation.

remove_initCalled(Function value)

Unsubscribe from event 'initCalled'.

set_baseDomain(String value)

Sets the base domain for your Connect site.

Properties

ApiClient  apiClient

Creates a Facebook API client instance.

String  apiKey

Your application API key.

String  appSecret

Specify an application secret to enable API calls that cannot be performed with a session secret.

Object  appSettings

A dictionary of advanced Facebook settings.

Number  isInConnect

String  locale

To specify a different locale for your site, choose from the list of locales.

String  version

Keep the version set to 1.0 to call the Facebook API.