Skip to content

Instantly share code, notes, and snippets.

@sabril
Created December 10, 2013 15:50
Show Gist options
  • Save sabril/7892854 to your computer and use it in GitHub Desktop.
Save sabril/7892854 to your computer and use it in GitHub Desktop.
tinggal buat routes untuk callbacknya
# gem "omniauth"
# gem "omniauth-instagram"
# gem "instagram"
Rails.application.config.middleware.use OmniAuth::Builder do
provider :instagram, ENV['INSTAGRAM_KEY'], ENV['INSTAGRAM_KEY']
end
Instagram.configure do |config|
config.client_id = ENV['INSTAGRAM_KEY']
config.client_secret = ENV['INSTAGRAM_SECRET']
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment