I wanted to try sending App request from my Facebook app to a user using Tornado Framework. I was following http://www.tornadoweb.org/documentation/auth.html but I have no i
Looks like you forgot to subclass tornado.web.RequestHandler
. Change:
class Send(tornado.auth.FacebookGraphMixin):
To:
class Send(tornado.web.RequestHandler, tornado.auth.FacebookGraphMixin):
Okay, my answer does not directly answer the OP's question. But as this shows up in the top search results for the error AttributeError: 'XxxxxHandler' object has no attribute 'async_callback'
It is worth noting that starting Tornado v4.0 the async_callback
function has been removed. To quote the Backwards-compatibility notes:
The
RequestHandler.async_callback
andWebSocketHandler.async_callback
wrapper functions have been removed; they have been obsolete for a long time due to stack contexts (and more recently coroutines).