jgorset/fandjango — Issue #57: Deauthorize callback fails.
Author: mbaechtold
Created: 2012-03-09 10:02:53+00:00
State: open

I'm having a hard time to get "deauthorization callback" to work.
The view `fandjango.views.deauthorize_application` is being called from Facebook, but it throws an error:

```
AttributeError: 'NoneType' object has no attribute 'has_expired'

Stacktrace (most recent call last):

File "django/core/handlers/base.py", line 168, in get_response
receivers = signals.got_request_exception.send(sender=self.__class__, request=request)

File "fandjango/middleware.py", line 75, in process_request
if request.facebook.signed_request.oauth_token.has_expired:

URL:	http://example.com/fandjango/deauthorize_application.html
Method:	GET
Query:
```