                 permissions = [];
 
             _openSessionCallback = callback;
-            _context.call('logInWithPermissions', permissions, type);
+            _context.call('logInWithPermissions', permissions);
         }
 
         /**

        }

        /**
         * Open a new session with a given set of read permissions.<br><br>
         *
         * @param permissions An array of requested <strong>read</strong> permissions.
         * @param callback (Optional) A callback function of the following form:

         * @param type
         * @param callback
         */
        private function _logIn(permissions:Array, callback:Function = null):void {

            if (!isSupported)
                return;
