Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Updae Facebook provider because they now return JSON for the access_t…
…oken
  • Loading branch information
antoineleclair committed Mar 27, 2017
commit 0655060d71da8b32a6f2b326f53ee51c947d7c6e
2 changes: 1 addition & 1 deletion velruse/providers/facebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down