 		 */
 		public function dialog( method : String, parameters : Object = null, callback : Function = null, allowNativeUI : Boolean = true ) : void
 		{
+			if (!isSupported) return;
+			
 			// Separate parameters keys and values
 			var keys:Array = []; var values:Array = [];
 			for (var key:String in parameters)

		/** Register the appId for install tracking. */
		public function publishInstall(appId:String):void
		{
			_context.call('publishInstall', appId);
		}
		

		 */
		public function init( appID : String, urlSchemeSuffix : String = null ) : void
		{
			if (!isSupported) return;
			
			_context.call('init', appID, urlSchemeSuffix);
		}
		
		/** True if a Facebook session is open, false otherwise. */
		public function get isSessionOpen() : Boolean
		{
			if (!isSupported) return false;
			
			return _context.call('isSessionOpen');
		}
		
		/** The current Facebook access token, or null if no session is open. */
		public function get accessToken() : String
		{
			if (!isSupported) return null;
			
			return _context.call('getAccessToken') as String;
		}
		
