Closed siong1987 closed 9 years ago
I think that we should allow to use query_string
, because documentation has been updated, see:
https://www.instagram.com/developer/authentication/
REGISTERED REDIRECT URI REDIRECT_URI PARAMETER PASSED TO /AUTHORIZE VALID? http://yourcallback.com/callback http://yourcallback.com/callback?type=mobile yes
ah, I see, the problem is here:
and we have:
Authentication failure! invalid_credentials: OAuth2::Error, :
{"code": 400, "error_type": "OAuthException", "error_message": "Redirect URI doesn't match original redirect URI"}
maybe better to add some hook and new option to define: which parameters are allowed for #build_access_token
?
Hi, just a notice I am no longer using this gem so not maintaining it. Feel free to open PRs or adopt it.
For some reasons, Instagram decided not to accept
query_string
as part of theredirect_uri
in their oauth2'shttps://api.instagram.com/oauth/access_token
request.Instagram should probably be the one to fix this since their documentation clearly states that extra parameters can be passed along and it can still be valid: https://instagram.com/developer/authentication/.