

def facebook_request(self, method, callback, **args):
    'Makes a Facebook API REST request.\n\n        We automatically include the Facebook API key and signature, but\n        it is the callers responsibility to include \'session_key\' and any\n        other required arguments to the method.\n\n        The available Facebook methods are documented here:\n        http://wiki.developers.facebook.com/index.php/API\n\n        Here is an example for the stream.get() method::\n\n            class MainHandler(tornado.web.RequestHandler,\n                              tornado.auth.FacebookMixin):\n                @tornado.web.authenticated\n                @tornado.web.asynchronous\n                def get(self):\n                    self.facebook_request(\n                        method="stream.get",\n                        callback=self.async_callback(self._on_stream),\n                        session_key=self.current_user["session_key"])\n\n                def _on_stream(self, stream):\n                    if stream is None:\n                       # Not authorized to read the stream yet?\n                       self.redirect(self.authorize_redirect("read_stream"))\n                       return\n                    self.render("stream.html", stream=stream)\n\n        '
    self.require_setting('facebook_api_key', 'Facebook Connect')
    self.require_setting('facebook_secret', 'Facebook Connect')
    if (not method.startswith('facebook.')):
        method = ('facebook.' + method)
    args['api_key'] = self.settings['facebook_api_key']
    args['v'] = '1.0'
    args['method'] = method
    http['call_id'] = str(long((time.time() * 1000000.0)))
    args['format'] = 'json'
    args['sig'] = self._signature(args)
    url = ('http://api.facebook.com/restserver.php?' + urllib_parse.urlencode(args))
    http = self.get_auth_http_client()
    http.fetch(url, callback=self.async_callback(self._parse_response, callback))

dataset/ETHPy150Open D-L/SimpleBookMarks/src/tornado/auth.py FacebookMixin.facebook_request/VarMisuse@85/478 `args`->`http`