/ app_idを渡さないレール上のRubyでの工夫のある/ OmniAuth facebook - ルビーオンレール、ルビーオンレール4、工夫、オムニアース、オムニアースフェイスブック

OmniAuthのFacebookブック、RubyのRubyでapp_idを渡さない - ruby​​-on-rails、ruby-on-rails-4、devise、omniauth、omniauth-facebook

私はDeviseを使ってレールアプリケーション(4.1.10)を設定しています。私はこの工夫ガイドを使ってOmniAuth Facebook統合を加えています: https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview

私は自分がすべきことをすべて設定したと思います(私はapp_idとsecretをENV変数に入れるべきであることを知っています - これがうまくいったら私は先に進みます)しかし私がfacebookリンクにサインインをクリックするとき私はエラーを得ます:

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

ユーザーモデルには全方位のセットがあります。

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]

では、なぜ私のリンクをクリックしても適切なIDが失われるのでしょうか。

回答:

回答№1は1

何が壊れたのかわからない - 私のコードをherokuに再コミットし、herokuの再起動をすることでそれが修正された。