3 ms·
Where would I change response_type=code to response_type=token?
by vikaton 10y ago
Where would I change response_type=code to response_type=token?
- xmrcivicboix 10y agoWhen you generate the server side explicit flow, it looks something like this: https://api.instagram.com/oauth/authorize/?client_id=CLIENT-ID&redirect_uri=REDIRECT-URI&response_type=code https://api.instagram.com/oauth/authorize/?client_id=CLIENT-... Depending on the library you use, it may be default to response_type=code. Just get the URL and do a search and replace if the library doesn't allow you to define the type. See https://www.instagram.com/developer/authentication/ https://www.instagram.com/developer/authentication/
- deleted 10y ago[deleted]
- vikaton 10y agoI use this library: https://github.com/jaredhanson/passport-oauth2 https://github.com/jaredhanson/passport-oauth2 Something tells me however that just changing it to 'token' (file strategy.js, line 217) actually fixes it, now there are other issues with many redirects when just changing that line, Im not entirely sure how that library works to fix anything else at this point, do you know when this issue might be resolved as a whole?
- xmrcivicboix 10y agoUnfortunately, Instagram is terrible with responding to developer support tickets and there really isn't a much of a community aspect around it. This issue itself is not easily reproducible. The same account may work on one site and not a another site.