Displays a new NativeWindow that allows the current user to login to
Facebook. The login process found at:
http://developers.facebook.com/docs/authentication/desktop,
will be handled by this class.
public var loginCallback:Functionprotected var loginRequest:URLRequestprotected var userClosedWindow:Boolean = truepublic function MobileLoginWindow(loginCallback:Function)
Creates a new LoginWindow instance.
Parameters | loginCallback:Function — Method to call when login is successful
|
protected function formatData(applicationId:String, display:String, extendedPermissions:Array = null):URLVariables Parameters
| applicationId:String |
| |
| display:String |
| |
| extendedPermissions:Array (default = null) |
Returns protected function handleLocationChange(event:Event):void Parameters
public function open(applicationId:String, webView:StageWebView, extendedPermissions:Array = null, display:String = touch):void
Opens a new login window, pointing to the Facebook authorization
page (https://graph.facebook.com/oauth/authorize).
Parameters
| applicationId:String — Current ID of the application being used.
|
| |
| webView:StageWebView — (Optional) List of extended permissions
to ask the user for after login.
|
| |
| extendedPermissions:Array (default = null) — (Optional) The display type for the OAuth dialog. "wap" for older mobile browsers,
"touch" for smartphones. The Default is "touch".
|
| |
| display:String (default = touch) |
See also
protected function showWindow(req:URLRequest):void Parameters
Wed Oct 19 2011, 11:37 AM -06:00