Ask HN: Does anyone else have problems with Instagram API OAuth2?
41–50 of 82 posts
Re: Ask HN: Does anyone else have problems with Instagram API OAuth2?
#42To temporary fix the issue, you could do the following: change response_type=code to response_type=token. Instagram will redirect back to your site with something like /callback#access_token=123456. From here, send the user to a very simple page with the following snippet: if (window.location.hash && window.location.hash.indexOf('#access_token=') !== -1) { var accessToken = window.location.hash.replace('#access_token…
This solution is insecure. Any person can intercept token and make harm to your application.
Re: Ask HN: Does anyone else have problems with Instagram API OAuth2?
#43In our case, it seems that most of our customer facing this issue is using business profile, any others checked this?
Re: Ask HN: Does anyone else have problems with Instagram API OAuth2?
#44Re: Ask HN: Does anyone else have problems with Instagram API OAuth2?
#45Earlier quoted context omitted.
This solution is insecure. Any person can intercept token and make harm to your application.
It doesn't seem too bad when enforcing https (using the return address whitelisting in the developer console). Am I missing something?
Re: Ask HN: Does anyone else have problems with Instagram API OAuth2?
#46To temporary fix the issue, you could do the following: change response_type=code to response_type=token. Instagram will redirect back to your site with something like /callback#access_token=123456. From here, send the user to a very simple page with the following snippet: if (window.location.hash && window.location.hash.indexOf('#access_token=') !== -1) { var accessToken = window.location.hash.replace('#access_token…
Re: Ask HN: Does anyone else have problems with Instagram API OAuth2?
#47Earlier quoted context omitted.
It doesn't seem too bad when enforcing https (using the return address whitelisting in the developer console). Am I missing something?
Customer will see token anyway
This is indeed rather unwanted, even more so with the new more restrictive API usage policy and the sandbox.