RealmTeam / django-rest-framework-social-oauth2

python-social-auth and oauth2 support for django-rest-framework
MIT License
1.06k stars 191 forks source link

Not able to convert token. Getting error code 2500 from facebook. #180

Closed singhravi1 closed 5 years ago

singhravi1 commented 5 years ago

I'm calling convert-token api and getting:

{
    "error": "invalid_request",
    "error_description": "Backend responded with HTTP400: {\"error\":{\"message\":\"Unknown path components: \\/me\",\"type\":\"OAuthException\",\"code\":2500,\"fbtrace_id\":\"AAAAAAAAAAA\"}}."
}

I have used this in other project where it worked (older versions of django social libraries). Am i doing anything wrong?

singhravi1 commented 5 years ago

Needed to specify facebook api version as, SOCIAL_AUTH_FACEBOOK_API_VERSION = '3.2'