 			response.setNamespace( XFacebookPlatform.NS );
 
 			stage = 0;
-		}
-
-		public static function setFacebookSessionValues( api_key:String, secret:String, session_key:String ):void
-		{
-			fb_api_key = api_key;
-			fb_secret = secret;
-			fb_session_key = session_key;
-		}
-
-		/**
-		 * Construct the signature as described by Facebook api documentation.
-		 */
-		public static function formatSig( map:Dictionary ):String
-		{
-			var md5:MD5 = new MD5();
-
-			var a:Array = [];
-
-			for( var p:String in map )
-			{
-				var arg:* = map[ p ];
-
-				a.push( p + '=' + arg.toString() );
-			}
-
-			a.sort();
-
-			var s:String = a.join( '' );
-
-			if( fb_secret != null )
-			{
-				s += fb_secret;
-			}
-
-			var sig:ByteArray = new ByteArray();
-			sig.writeUTFBytes( s );
-			sig = md5.hash( sig );
-
-			return Hex.fromArray( sig );
 		}
 
 		/**


		public static const NS:String = "urn:ietf:params:xml:ns:xmpp-sasl";

		public static var fb_api_key:String;
		public static var fb_secret:String;
		public static var fb_session_key:String;

		/**
		 * Creates a new XFacebookPlatform authentication object.

			}

			var responseMap:Dictionary = new Dictionary();
			responseMap.method = challengeMap.method;
			responseMap.api_key = fb_app_id;
			responseMap.access_token = fb_access_token;
			responseMap.call_id = new Date().time;
			responseMap.v = "1.0";
			responseMap.nonce = challengeMap.nonce;

			var challengeResponse:String = "method=" + responseMap.method;
			challengeResponse += "&api_key=" + responseMap.api_key;
			challengeResponse += "&access_token=" + responseMap.access_token;
			challengeResponse += "&call_id=" + responseMap.call_id;
			challengeResponse += "&v=" + responseMap.v;
			challengeResponse += "&nonce=" + responseMap.nonce;
			challengeResponse = Base64.encode( challengeResponse );

			var resp:XML = response;
