Facebook login api with Django allauth

165 Views Asked by At

Im trying to connect Facebook login api to my project, using Django allauth. Although it seems that something is not working...

When I run my project on localhost, it shows:

"Page not found - Request URL: http://localhost:8000/accounts/facebook/login/token/login.html"

And also say that this path (accounts/Facebook/login/token/login.html) does not match with anything.

Can someone help me?

1

There are 1 best solutions below

0
Yasen On

There is detailed explanation howto add your app with django-allauth to the Facebook.

See Django-allauth Facebook Login by Kwon Jinhwan

According to your error report, author recommends this:

Add this code to your urlpatterens

url(r'^accounts/',include('allauth.urls')),

Also, there is working example, you might try it

sushaantu/django-allauth-example: Working example of django-allauth