Packagecom.distriqt.extension.facebook.login
Classpublic final class FacebookLogin
InheritanceFacebookLogin Inheritance flash.events.EventDispatcher

This class represents the FacebookLogin extension.



Public Properties
 PropertyDefined By
  implementation : String
[read-only] The implementation currently in use.
FacebookLogin
  instance : FacebookLogin
[static] [read-only] The singleton instance of the FacebookLogin class.
FacebookLogin
  isSupported : Boolean
[static] [read-only] Whether the current device supports the extensions functionality
FacebookLogin
  nativeVersion : String
[read-only] The native version string of the native extension.
FacebookLogin
  service : FacebookLogin
[static] [read-only] The singleton instance of the FacebookLogin class.
FacebookLogin
  version : String
[read-only] The version of this extension.
FacebookLogin
Public Methods
 MethodDefined By
  
Constructor You should not call this directly, but instead use the singleton access
FacebookLogin
  
dispose():void
Disposes the extension and releases any allocated resources.
FacebookLogin
  
Retrieves the current access token, if available
FacebookLogin
  
The current authentication token that represents the currently logged in user and can be used by a client to verify an authentication attempt.
FacebookLogin
  
Retrieves the current user profile information, if available
FacebookLogin
  
isLoggedIn():Boolean
Checks if a user is currently logged in.
FacebookLogin
  
Logs the user in or authorizes additional permissions
FacebookLogin
  
logInWithReadPermissions(permissions:Array):void
Logs the user in or authorizes additional permissions.
FacebookLogin
  
logout():void
FacebookLogin
Public Constants
 ConstantDefined By
  EXT_CONTEXT_ID : String = com.distriqt.facebook.Login
[static]
FacebookLogin
  VERSION : String = 17.0.1
[static]
FacebookLogin
Property Detail
implementationproperty
implementation:String  [read-only]

The implementation currently in use. This should be one of the following depending on the platform in use and the functionality supported by this extension:


Implementation
    public function get implementation():String
instanceproperty 
instance:FacebookLogin  [read-only]

The singleton instance of the FacebookLogin class.


Implementation
    public static function get instance():FacebookLogin

Throws
Error — If there was a problem creating or accessing the extension, or if the key is invalid
isSupportedproperty 
isSupported:Boolean  [read-only]

Whether the current device supports the extensions functionality


Implementation
    public static function get isSupported():Boolean
nativeVersionproperty 
nativeVersion:String  [read-only]

The native version string of the native extension.


Implementation
    public function get nativeVersion():String
serviceproperty 
service:FacebookLogin  [read-only]

The singleton instance of the FacebookLogin class.


Implementation
    public static function get service():FacebookLogin

Throws
Error — If there was a problem creating or accessing the extension, or if the key is invalid
versionproperty 
version:String  [read-only]

The version of this extension.

This should be of the format, MAJOR.MINOR.BUILD


Implementation
    public function get version():String
Constructor Detail
FacebookLogin()Constructor
public function FacebookLogin()

Constructor You should not call this directly, but instead use the singleton access

Method Detail
dispose()method
public function dispose():void

Disposes the extension and releases any allocated resources. Once this function has been called, a call to init is neccesary again before any of the extensions functionality will work.

getAccessToken()method 
public function getAccessToken():AccessToken

Retrieves the current access token, if available

Returns
AccessToken — The access token or null if not available
getAuthenticationToken()method 
public function getAuthenticationToken():AuthenticationToken

The current authentication token that represents the currently logged in user and can be used by a client to verify an authentication attempt.

Returns
AuthenticationToken — Current authentication token or null if not available
getProfile()method 
public function getProfile():Profile

Retrieves the current user profile information, if available

Returns
Profile — The current user profile or null if not available
isLoggedIn()method 
public function isLoggedIn():Boolean

Checks if a user is currently logged in.

Returns
Booleantrue if a user is logged in and false if not
logInWithConfiguration()method 
public function logInWithConfiguration(configuration:LoginConfiguration):void

Logs the user in or authorizes additional permissions

Parameters

configuration:LoginConfiguration — the login configuration to use

logInWithReadPermissions()method 
public function logInWithReadPermissions(permissions:Array):void

Logs the user in or authorizes additional permissions.

Parameters

permissions:Array

logout()method 
public function logout():void

Constant Detail
EXT_CONTEXT_IDConstant
public static const EXT_CONTEXT_ID:String = com.distriqt.facebook.Login

VERSIONConstant 
public static const VERSION:String = 17.0.1