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',