From 0655060d71da8b32a6f2b326f53ee51c947d7c6e Mon Sep 17 00:00:00 2001 From: Antoine Leclair Date: Mon, 27 Mar 2017 16:31:28 -0400 Subject: [PATCH] Updae Facebook provider because they now return JSON for the access_token --- velruse/providers/facebook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/velruse/providers/facebook.py b/velruse/providers/facebook.py index 24fd266..a0a0740 100644 --- a/velruse/providers/facebook.py +++ b/velruse/providers/facebook.py @@ -118,7 +118,7 @@ def callback(self, request): if r.status_code != 200: raise ThirdPartyFailure("Status %s: %s" % ( r.status_code, r.content)) - access_token = dict(parse_qsl(r.text))['access_token'] + access_token = r.json()['access_token'] # Retrieve profile data graph_url = flat_url('https://graph.facebook.com/me',