Facebook

Go to developers.facebook.com and login, click My apps, and create a new one.

Now logout yourself because you logged in as a superuser and open http://localhost:8000/accounts/login/ and you can see Facebook login option.

If you have customized django-allauth templates then you can directly use this code in your template.

{% load socialaccount %}
{% providers_media_js %}
<a href="{% provider_login_url 'facebook' method='js_sdk' %}">Facebook Login</a>

Note: if you're also using Google authentication with Facebook authentication, change 127.0.0.1 to localhost in the google cloud app so you can use both but with http://localhost:8000 URL

Last updated