I\'m using python-social-auth in my Django application for authentication via Facebook. But when a user tries to login, they have been redirected to the Facebook app page, a
Just add in
MIDDLEWARE_CLASSES = ( 'social_auth.middleware.SocialAuthExceptionMiddleware', )
and something like
LOGIN_ERROR_URL = '/'
That's all or read http://django-social-auth.readthedocs.org/en/latest/configuration.html#exceptions-middleware