Skip to content
Prev Previous commit
Next Next commit
Fixed Facebook key-error
  • Loading branch information
katzlbt committed May 12, 2020
commit 7b57fdfc522ca5deaaca551fe7321e04f9f9e199
3 changes: 2 additions & 1 deletion velruse/providers/facebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ def callback(self, request):
if r.status_code != 200:
raise ThirdPartyFailure("Status %s: %s" % (
r.status_code, r.content))
access_token = r.json()['access_token']
rbody = r.json()
access_token = rbody['access_token']

# Retrieve profile data
graph_url = flat_url('https://graph.facebook.com/me',
Expand Down