Fix exchange_code_for_access_token by supplying Content-Type info#249
Fix exchange_code_for_access_token by supplying Content-Type info#249yousong wants to merge 1 commit into
Conversation
Otherwise, it will fail with the following error
Traceback (most recent call last):
File "get_access_token.py", line 49, in <module>
access_token = api.exchange_code_for_access_token(code)
File "/home/yousong/git-repo/python-instagram/instagram/oauth2.py", line 48, in exchange_code_for_access_token
return req.exchange_for_access_token(code=code)
File "/home/yousong/git-repo/python-instagram/instagram/oauth2.py", line 116, in exchange_for_access_token
raise OAuth2AuthExchangeError(parsed_content.get("error_message", ""))
instagram.oauth2.OAuth2AuthExchangeError: You must provide a client_id
|
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks! If you are contributing on behalf of someone else (eg your employer): the individual CLA is not sufficient - use https://developers.facebook.com/opensource/cla?type=company instead. Contact [email protected] if you have any questions. |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
Fixes "instagram.oauth2.OAuth2AuthExchangeError: You must provide a client_id" error Reference: facebookarchive#249. All credit goes to yousong.
Otherwise, it will fail with the following error