From 5b3aff990135b2f6068599a165015bd113d81399 Mon Sep 17 00:00:00 2001 From: Ben Adida <ben@adida.net> Date: Sun, 9 Apr 2017 23:25:53 +0000 Subject: [PATCH] updated facebook API response, it is now JSON --- helios_auth/auth_systems/facebook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helios_auth/auth_systems/facebook.py b/helios_auth/auth_systems/facebook.py index 8a0b03b..4c50c65 100644 --- a/helios_auth/auth_systems/facebook.py +++ b/helios_auth/auth_systems/facebook.py @@ -53,7 +53,7 @@ def get_user_info_after_auth(request): 'code' : request.GET['code'] }) - access_token = cgi.parse_qs(args)['access_token'][0] + access_token = utils.from_json(args)['access_token'] info = utils.from_json(facebook_get('/me', {'access_token':access_token})) -- GitLab