Packagecom.facebook.graph.windows
Classpublic class MobileLoginWindow
InheritanceMobileLoginWindow Inheritance flash.display.Sprite

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 Properties
 PropertyDefined By
  loginCallback : Function
MobileLoginWindow
Protected Properties
 PropertyDefined By
  loginRequest : URLRequest
MobileLoginWindow
  userClosedWindow : Boolean = true
MobileLoginWindow
Public Methods
 MethodDefined By
  
MobileLoginWindow(loginCallback:Function)
Creates a new LoginWindow instance.
MobileLoginWindow
  
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).
MobileLoginWindow
Protected Methods
 MethodDefined By
  
formatData(applicationId:String, display:String, extendedPermissions:Array = null):URLVariables
MobileLoginWindow
  
handleLocationChange(event:Event):void
MobileLoginWindow
  
showWindow(req:URLRequest):void
MobileLoginWindow
Property Detail
loginCallbackproperty
public var loginCallback:Function

loginRequestproperty 
protected var loginRequest:URLRequest

userClosedWindowproperty 
protected var userClosedWindow:Boolean = true

Constructor Detail
MobileLoginWindow()Constructor
public function MobileLoginWindow(loginCallback:Function)

Creates a new LoginWindow instance.

Parameters
loginCallback:Function — Method to call when login is successful
Method Detail
formatData()method
protected function formatData(applicationId:String, display:String, extendedPermissions:Array = null):URLVariables

Parameters

applicationId:String
 
display:String
 
extendedPermissions:Array (default = null)

Returns
URLVariables
handleLocationChange()method 
protected function handleLocationChange(event:Event):void

Parameters

event:Event

open()method 
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

showWindow()method 
protected function showWindow(req:URLRequest):void

Parameters

req:URLRequest