mkdynamic/omniauth-facebook — Issue #9: Dynamic providers not working
Author: dipth
Created: 2011-11-22 15:13:28+00:00
State: open

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

undefined method `consumer_key=' for

Here is my setup method:

def setup
if params[:provider] == "facebook"
site = Site.where(:name => 'whitegallery').first
request.env['omniauth.strategy'].consumer_key = site.facebook_app_id
request.env['omniauth.strategy'].consumer_secret = site.facebook_app_secret
end
render :text => "Setup complete.", :status => 404
end

I have also tried with `client_id` and `client_secret` but simply get an `undefined method 'client_key=' ` instead.