Allow configuration of redirect uri in client #88

merged 1 commit into from Apr 3, 2014


None yet

2 participants


A redirect uri can now be passed in the options in the configure method:

Instagram.configure do |config|
  config.client_id = 'CI'
  config.client_secret = 'CS'
  config.redirect_uri = 'http://localhost:3456/oauth/callback'

This will be used as the default redirect_uri. authorize_url and get_access_token no longer need to be passed a :redirect_uri option, however that option can still be passed to override the configured redirect_uri if one has been specified.

@heatonjb heatonjb merged commit a49758e into facebookarchive:master Apr 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment