Skip to main content

Initialise the Extension

caution

This is the legacy extension documentation. Find the new documentation here

Initialising the Extension

You should perform this once in your application to initialise the extension . Note you should always check whether the extension is supported before making calls. This allows you to react to whether the functionality is available on the device.

try
{
Core.init();
FacebookAPI.init();
if (FacebookAPI.isSupported)
{
// Functionality here
}
}
catch (e:Error)
{
trace( e );
}