Space and tabs where mixed, converted all spaces to tabs (see http://book.cakephp.org/2.0/en/contributing/cakephp-coding-conventions.html)
Make sure CakeSession is used, otherwise CakePHP sessions will be ignored because the Facebook vendor lib will start a basic PHP session first.