Implemented pretty working and clean Oath2 instagram authorization. Details are here: http://railscasts.com/episodes/241-simple-omniauth . Also here some guide to eliminate one issue: http://stackoverflow.com/questions/13561140/i-am-using-rails-cast-omniauth-and-i-get-this-error