'Fetches the authenticated Facebook user.
The authenticated user includes the special Facebook attributes
\'session_key\' and \'facebook_uid\' in addition to the standard
user attributes like \'name\'.'

def get_authenticated_user(self, callback):

    self.require_setting('facebook_api_key', 'Facebook    Connect')
    session = escape.json_decode(self.get_argument('session'))
    self.facebook_request(method='facebook.users.getInfo', callback=functools.partial(self._on_get_user_info, callback, session), session_key=session['session_key'], uids=session['uid'], fields='uid,first_name,last_name,name,locale,pic_square,profile_url,username')
