OmniAuth facebook with Devise in Ruby on rails 未通过 app_id

OmniAuth facebook with Devise in Ruby on rails not passing app_id

我正在使用 Devise 设置 rails 应用程序 (4.1.10)。我正在使用此设计指南添加 OmniAuth Facebook 集成:https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview

我想我已经设置了我应该设置的所有内容(我知道我应该将 app_id 和 secret 放入 ENV 变量中 - 一旦它起作用我将继续)但是当我点击我的登录facebook link 我收到一个错误:

https://www.facebook.com/dialog/oauth?client_id=&display=popup&redirect_uri=http%3A%2F%2Fwww.clazzoo.com%2Fusers%2Fauth%2Ffacebook%2Fcallback&response_type=code&scope=email%2Cuser_birthday%2Cread_stream&state=b43008b5d8e714e91ac37b4410f7758655efecbca7bfe98e

Warning
The parameter app_id is required

配置在这里:

    # Use this hook to configure devise mailer, warden hooks and so forth.
    # Many of these configuration options can be set straight in your model.
    Devise.setup do |config|
     ...
    ...

    config.omniauth :facebook, "1602932433319776", "7221cf917c6e55ba68c8e81145994481",
      :scope => 'email,user_birthday,read_stream',
      :display => 'popup'

    config.omniauth :stripe_connect,
    Settings.stripeConnectClientID,
    Settings.stripeSecretKey,
    :scope => 'read_write',
    :stripe_landing => 'register'
  end

用户模型具有 omniauthable 集:

class User < ActiveRecord::Base
  # Include default devise modules. Others available are:
  # :confirmable, :lockable, :timeoutable and :omniauthable
  devise :database_authenticatable, :registerable,
         :recoverable, :rememberable, :trackable, :validatable, :confirmable,
         :omniauthable, :omniauth_providers => [:facebook]

那么为什么当我点击我的 link 时它会错过合适的 ID?

我不确定哪里出了问题 - 结果是将我的代码重新提交给 heroku 并重新启动 heroku 修复了它。简单 ;)