FB.init

The method FB.init() is used to initialize and setup the SDK. All other SDK methods must be called after this one, because they won’t exist until you do.

FB.init(params)

Parameters

NameTypeDescription
paramsobjectA collection of initialization parameters that control the setup of the SDK.

Example: Standard initialization code:

FB.init({

appId      : ‘{your-app-id}’,

status     : true,

xfbml      : true,

version    : ‘v2.7’ // or v2.6, v2.5, v2.4, v2.3

});

JavaScript Frameworks
FB.api

Get industry recognized certification – Contact us

keyboard_arrow_up
Open chat
Need help?
Hello 👋
Can we help you?