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
Name | Type | Description |
params | object | A 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
});