Step 1 : Initialize Facebook JavaScript SDK
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({
appId : 'YOUR APP ID',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
</script>
Parameters for initializing| Name | Type | Description |
|---|
| options | Object | | Property | Type | Description | Argument | Default |
|---|
| appId | String | Your application ID. | Optional | null | | cookie | Boolean | true to enable cookie support. | Optional | false | | logging | Boolean | false to disable logging. | Optional | true | | session | Object | Use specified session object. | Optional | null | | status | Boolean | true to fetch fresh status. | Optional | false | | xfbml | Boolean | true to parse [[wiki:XFBML]] tags. | Optional | false |
|
|
|