Class fsw
Version
0.2.0.
FSW - wrapper for the Facebook JavaScript SDK.
(not endorsed by or affiliated with Facebook).
Defined in: fsw.0.2.0.js.
Constructor Attributes | Constructor Name and Description |
---|---|
fsw()
|
Method Attributes | Method Name and Description |
---|---|
<static> |
fsw.getAppId()
Get Application ID
|
<static> |
fsw.getCanvasUrl()
Get Canvas URL
Returns null if none set.
|
<static> |
fsw.getTabUrl()
Get tab URL
Returns null if none set.
|
<static> |
fsw.init(appId, canvasUrl, tabUrl)
Calls FB.init() and stores basic app info for later retrieval.
|
<static> |
fsw.ready(callback)
Specify a function to execute when the the FB JS SDK is fully loaded.
|
Method Detail
<static>
{String}
fsw.getAppId()
Get Application ID
- Returns:
- {String} application id
<static>
{String}
fsw.getCanvasUrl()
Get Canvas URL
Returns null if none set.
- Returns:
- {String} canvas url
<static>
{String}
fsw.getTabUrl()
Get tab URL
Returns null if none set.
- Returns:
- {String} tab url
<static>
fsw.init(appId, canvasUrl, tabUrl)
Calls FB.init() and stores basic app info for later retrieval.
- Parameters:
- {String} appId
- application ID
- {String} canvasUrl Optional
- Fully-qualified app canvas URL
- {String} tabUrl Optional
- Fully-qualified app tab URL
<static>
fsw.ready(callback)
Specify a function to execute when the the FB JS SDK is fully loaded.
Wrap all "fsw" methods in this to avoid a race condition.
fsw.ready(function(){ fsw.init(appId); fsw.doSomething(et cetera); });
- Parameters:
- callback