Class fsw.auth
Authorization module. Handles login and permissions.
Defined in: fsw.0.2.0.js.
Constructor Attributes | Constructor Name and Description |
---|---|
fsw.auth()
|
Method Attributes | Method Name and Description |
---|---|
<static> |
fsw.auth.createBtn(triggerId, callback, permissions)
Bind FB.login() to a specified DOM element
Only binds to elements that have an ID.
|
Method Detail
<static>
fsw.auth.createBtn(triggerId, callback, permissions)
Bind FB.login() to a specified DOM element
Only binds to elements that have an ID.
- Parameters:
- {Strging} triggerId
- ID of element to bind to
- {Function} callback
- function to launch after login
- {String} permissions Optional
- Comma separated list, see http://bit.ly/hOUAQD and http://bit.ly/cjEOKB