From 30aba20be6fcbfd2ca7135cd504359f2543022d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Araujo?= Date: Wed, 17 Oct 2018 15:18:26 -0400 Subject: [PATCH] fix facebook login #36 (#40) --- rest_auth_toolkit/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_auth_toolkit/serializers.py b/rest_auth_toolkit/serializers.py index f827671..ad61067 100644 --- a/rest_auth_toolkit/serializers.py +++ b/rest_auth_toolkit/serializers.py @@ -83,7 +83,7 @@ def validate(self, data): graph = facepy.GraphAPI(req.user.oauth_token.token) data = graph.get('me?fields=email,first_name,last_name,third_party_id') - extended_token = facepy.get_extended_access_token( + extended_token, __ = facepy.get_extended_access_token( req.user.oauth_token.token, settings.FACEBOOK_APP_ID, settings.FACEBOOK_APP_SECRET_KEY)