IGM
You can use this library to implement Instagram login in your Ruby application.
We use this at Chicisimo.
Usage
require "sinatra"
require "igm"
REDIRECT_URI = "https://something.com/login/instagram/token"
IGM.configure do |config|
config.client_id = "xxx"
config.client_secret = "xxx"
end
get "/login/instagram" do
redirect to(IGM.authorize_uri(redirect_uri: REDIRECT_URI, scope: %w{basic}))
end
get "/login/instagram/token" do
code = params[:code]
access_token = IGM.get_access_token(redirect_uri: REDIRECT_URI, code: code)
user = IGM.get_user_info(access_token)
end