Class Index | File Index

Classes


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.

Class Summary
Constructor Attributes Constructor Name and Description
 
fsw()
Method Summary
Method Attributes Method Name and Description
<static>  
fsw.getAppId()
Get Application ID
<static>  
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.
Class Detail
fsw()

Author: Philip Schweiger [pschwei1@gmail.com].
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

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Oct 13 2011 20:27:20 GMT-0400 (EDT)