-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix response not header on get access token
- Loading branch information
sergio.dzul
committed
Nov 3, 2017
1 parent
4db9efc
commit c50302f
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c50302f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SergioDzul Thanks for the fix! Looks pretty neat.
However I'm not sure if Facebook responds with the old string access_token=[[token]] if you are using older versions of the api. Could you just wrap the
data = json.loads(data)
in a try except block so we make sure it keeps the backguard compatibility? Thanks!