 			}
 
 			var responseMap:Dictionary = new Dictionary();
-			responseMap.api_key = fb_api_key;
+			responseMap.method = challengeMap.method;
+			responseMap.api_key = fb_app_id;
+			responseMap.access_token = fb_access_token;
 			responseMap.call_id = new Date().time;
-			responseMap.method = challengeMap.method;
+			responseMap.v = "1.0";
 			responseMap.nonce = challengeMap.nonce;
-			responseMap.session_key = fb_session_key;
-			responseMap.v = "1.0";
-			responseMap.sig = formatSig( responseMap );
 
-			var challengeResponse:String = "api_key=" + responseMap.api_key;
+			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 += "&method=" + responseMap.method;
+			challengeResponse += "&v=" + responseMap.v;
 			challengeResponse += "&nonce=" + responseMap.nonce;
-			challengeResponse += "&session_key=" + responseMap.session_key;
-			challengeResponse += "&sig=" + responseMap.sig;
-			challengeResponse += "&v=" + responseMap.v;
 			challengeResponse = Base64.encode( challengeResponse );
 
 			var resp:XML = response;


		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.

			response.setNamespace( XFacebookPlatform.NS );

			stage = 0;
		}

		/**
