{"issue":{"created_at":"2011-11-23T08:20:47Z","state":"closed","updated_at":"2011-11-24T10:17:18Z","comments":1,"user":{"gravatar_id":"ca11ae08feb22522f7651533ec8d311c","id":171490,"url":"https://api.github.com/users/dipth","login":"dipth","avatar_url":"https://secure.gravatar.com/avatar/ca11ae08feb22522f7651533ec8d311c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"I'm getting the following exception when trying to implement dynamic providers with Facebook, as described on: https://github.com/intridea/omniauth/wiki/Dynamic-Providers\r\n\r\n    undefined method `consumer_key=' for <OmniAuth::Strategies::Facebook>\r\n\r\nHere is my setup method:\r\n\r\n    def setup\r\n      if params[:provider] == \"facebook\"\r\n        site = Site.where(:name => 'whitegallery').first\r\n        request.env['omniauth.strategy'].consumer_key = site.facebook_app_id\r\n        request.env['omniauth.strategy'].consumer_secret = site.facebook_app_secret\r\n      end\r\n      render :text => \"Setup complete.\", :status => 404\r\n    end\r\n\r\nI have also tried with `client_id` and `client_secret` but simply get an `undefined method 'client_key=' ` instead.\r\n\r\nHave the procedure for setting up Dynamic Providers changed since 1.0?","assignee":null,"id":2327507,"number":545,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"Problem with Dynamic Providers","closed_at":"2011-11-24T10:17:18Z","html_url":"https://github.com/intridea/omniauth/issues/545","milestone":null,"url":"https://api.github.com/repos/intridea/omniauth/issues/545"},"action":"closed"}