Packagecom.facebook.graph.windows
Classpublic class LoginWindow
InheritanceLoginWindow Inheritance AbstractWindow 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
LoginWindow
  WINDOW_HEIGHT : Number = 260
[static] Default window height.
LoginWindow
  WINDOW_WIDTH : Number = 460
[static] Default window width.
LoginWindow
Public Methods
 MethodDefined by
  
LoginWindow(loginCallback:Function)
Creates a new LoginWindow instance.
LoginWindow
  
open(applicationId:String, extendedPermissions:Array = null, point:Point = null):void
Opens a new login window, pointing to the Facebook authorization page (https://graph.facebook.com/oauth/authorize).
LoginWindow
Property detail
loginCallbackproperty
public var loginCallback:Function
WINDOW_HEIGHTproperty 
public static var WINDOW_HEIGHT:Number = 260

Default window height.

WINDOW_WIDTHproperty 
public static var WINDOW_WIDTH:Number = 460

Default window width.

Constructor detail
LoginWindow()constructor
public function LoginWindow(loginCallback:Function)

Creates a new LoginWindow instance.

Parameters
loginCallback:Function — Method to call when login is successful
Method detail
open()method
public function open(applicationId:String, extendedPermissions:Array = null, point:Point = null):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.
 
extendedPermissions:Array (default = null) — (Optional) List of extended permissions to ask the user for after login.
 
point:Point (default = null) — (Optional) Starting point for the LoginWindow. If null, the window will be centered on the current user's screen.

See also