Report abuse


			
  def set_fb_app_params
    if File.exists?("#{RAILS_ROOT}/config/fb1_local.yml")
      yamlFile = YAML.load_file("#{RAILS_ROOT}/config/fb1_local.yml")
    else
      yamlFile = YAML.load_file("#{RAILS_ROOT}/config/fb1.yml")
    end
    
    FACEBOOK.clear
    FACEBOOK.merge!(yamlFile[RAILS_ENV])
  end