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

387 Views Asked by At

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"]}
1

There are 1 best solutions below

8
Ghazouani Ahmed On BEST ANSWER

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