Skip to content

Instantly share code, notes, and snippets.

@kdmukai
Created July 26, 2012 01:16
Show Gist options
  • Save kdmukai/3179712 to your computer and use it in GitHub Desktop.
Save kdmukai/3179712 to your computer and use it in GitHub Desktop.
Facebook registration with django_facebook
{% load url from future %}
<link href="{{ STATIC_URL }}css/facebook.css" type="text/css" rel="stylesheet" media="all" />
{% include 'django_facebook/_facebook_js.html' %}
Register!
<form action="{% url 'facebook_connect' %}?facebook_login=1" method="post">
<a href="javascript:void(0);" style="font-size: 20px;" onclick="F.connect(this.parentNode);">Login or register with facebook</a>
<input type="hidden" value="{% url 'my_post_registration_url' %}" name="register_next" />
<input type="hidden" value="{% url 'my_post_login_url' %}" name="next" />
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment