def add_user_message(self, kind, msg, detail='', time=15 * 60):
        if self.facebook.uid:
            key = 'messages:%s' % self.facebook.uid
            self._messages = memcache.get(key)
            message = {
                'kind': kind,
                'message': msg,
                'detail': detail,
            }
            if self._messages is not None:
                self._messages.append(message)
            else:
                self._messages = [message]
            memcache.set(key, self._messages, time=time)
Add a message to the current user to memcache.
dataset/ETHPy150Open benadida/helios-server/helios_auth/auth_systems/facebookclient/webappfb.py/FacebookRequestHandler.add_user_message