ruby on rails - Oauth2 Instagram API "redirect URI does not match registered redirect URI" -
i working on rails application in development mode , can register omniauth.
the host
http://localhost:3000/ i'm using gems:
gem 'omniauth' gem 'omniauth-foursquare' gem 'omniauth-instagram' when register through omniauth foursquare there's no problem @ all. settings right , redirect_uri in foursquare developer settings equals host (localhost:3000)
however, if fill in exact same redirect_uri (localhost:3000) in instagram client manager*. instagram gives me this:
{ "code": 400, "error_type": "oauthexception", "error_message": "redirect uri not match registered redirect uri" } based upon url:
https://instagram.com/oauth/authorize?response_type=code&client_id=<id>&redirect_uri=http%3a%2f%2flocalhost%3a3000%2fauth%2finstagram%2fcallback&state=18415adf24dd97873e61094f67c0fb7a94857fedf93e9d2e&scope=basic * 
what doing wrong according instagram , how should fixed?
fixed issue myself. added localhost:3000/auth/instagram/callback redirect_uri , worked fine.
Comments
Post a Comment