y-ncao / Like-My-GF

An auto robot to like my GF's post on Instagram
MIT License
399 stars 43 forks source link

Error: You must provide client_id #8

Open BrunnerLivio opened 7 years ago

BrunnerLivio commented 7 years ago

I get the following log:

Visit this page and authorize access in your browser:
https://www.instagram.com/accounts/login/?force_classic_login=&next=/oauth/authorize%3Fscope%3Dlikes%26redirect_uri%3Dhttps%3A//reddit.com%26response_type%3Dcode%26client_id%3D813118a9a7544990a6505729f6a8da31
Please type in the access code you got
MY_ACCESS_CODE
Traceback (most recent call last):
  File "like_my_gf.py", line 81, in <module>
    get_auth()
  File "like_my_gf.py", line 38, in get_auth
    OTHER['access_token'], me = unauth_api.exchange_code_for_access_token(code)
  File "/home/brunnel6/.local/lib/python2.7/site-packages/instagram/oauth2.py", line 48, in exchange_code_for_access_token
    return req.exchange_for_access_token(code=code)
  File "/home/brunnel6/.local/lib/python2.7/site-packages/instagram/oauth2.py", line 115, in exchange_for_access_token
    raise OAuth2AuthExchangeError(parsed_content.get("error_message", ""))
instagram.oauth2.OAuth2AuthExchangeError: You must provide a client_id

My question is; am I using the right code? When I click on the outputted link, it opens instagram with the authorization thingy, as expect, then I get redirected to my given site (in my case reddit.com) and in the url theres ?code=MY_ACCESS_CODE, MY_ACCESS_CODE replace with a code off course. Is that the right one? If it is, why does it still throw this exception?