pythondjangodjango-allauthdjango-rest-authdj-rest-auth

Unable to perform user registration with Facebook using allauth and django-rest-auth. getting incorrect value error


I am trying to implement social authentication, I am using django-allauth, django-rest-auth for this. my views

from allauth.socialaccount.providers.facebook.views import FacebookOAuth2Adapter
from allauth.socialaccount.providers.oauth2.client import OAuth2Client

class FacebookLoginView(SocialLoginView):
    adapter_class = FacebookOAuth2Adapter
    client_class = OAuth2Client

on making post request in the above view with access_token it returns the error

{"non_field_errors":["Incorrect value"]}

Solution

  • Edited: Most of cases issues should be coming from using a wrong APP ID. Make sure the access_token belong to you app