alexandrtovmach / react-instagram-login

Instagram OAuth with React
https://alexandrtovmach.github.io/react-instagram-login/
MIT License
11 stars 5 forks source link

Regarding login api url #9

Open kishanPrajapatCloud opened 2 years ago

kishanPrajapatCloud commented 2 years ago

Hi @alexandrtovmach I want to tell you about one change you have to make in your code. Like you are using this url

" https://api.instagram.com/oauth/authorize?app_id=${appId}&redirect_uri=${uri}&scope=${scope?.join( "," ) || "user_profile"}&response_type=code`; };

" But, it is working fine when it is redirecting to our given path and gives us the code that we are going to use for another access token. but that code is not working in getting access token because you are using old URL.

Could you change the URL in your code? The new URL is: https://api.instagram.com/oauth/authorize?client_id={client_id}&client_secret={clinet_secret}&redirect_uri={redirect_uri}&scope=user_profile,user_media&response_type=code

Thanks @alexandrtovmach

minsoura commented 2 years ago

is this Instagram Auth working? I heard that it stopped working at some point..

kishanprajapat2564788 commented 2 years ago

It's working but it generates the wrong token. That's why I gave him the URL to generate the correct token.