I am using the django facebook app, how do I get the user redirected back to previous page after login ?
I tried to use the "next" hidden input box, but that did not work .
<input type = "hidden" name = "next" value = "{{ request.GET.next }}" />
I am using the django facebook app, how do I get the user redirected back to previous page after login ?
I tried to use the "next" hidden input box, but that did not work .
<input type = "hidden" name = "next" value = "{{ request.GET.next }}" />
Copyright © 2021 Jogjafile Inc.
from the Django-facebook docs:
In settings.py you can set
FACEBOOK_LOGIN_DEFAULT_REDIRECT = "/whatever/"to change the default-redirect.
edit
Another way is to subclass the facebook-app's custom backend like so (excerpt from the docs):
post_connecthandles the redirect after connecting.