This class provides SASL authentication using the X-FACEBOOK-PLATFORM mechanism.
public static var fb_api_key:String
public static var fb_secret:String
public static var fb_session_key:String
public function XFacebookPlatform(connection:XMPPConnection)
Creates a new XFacebookPlatform authentication object.
Parameters
| connection:XMPPConnection — A reference to the XMPPConnection instance in use.
|
public static function formatSig(map:Dictionary):String
Construct the signature as described by Facebook api documentation.
Parameters
Returns
public override function handleChallenge(stage:int, challenge:XML):XML
Called when a challenge to this authentication is received.
Parameters
| stage:int — The current stage in the authentication process.
|
|
| challenge:XML — The XML of the actual authentication challenge.
|
Returns
| XML — The XML response to the challenge.
|
public override function handleResponse(stage:int, response:XML):Object
Called when a response to this authentication is received.
Parameters
| stage:int — The current stage in the authentication process.
|
|
| response:XML — The XML of the actual authentication response.
|
Returns
| Object — An object specifying the current state of the authentication.
|
public static function setFacebookSessionValues(api_key:String, secret:String, session_key:String):void
Parameters
| api_key:String |
|
| secret:String |
|
| session_key:String |
public static const MECHANISM:String = "X-FACEBOOK-PLATFORM"
public static const NS:String = "urn:ietf:params:xml:ns:xmpp-sasl"