title: The parameter app_id is required for {{url}}/api/v1/auth/facebook
body: <p>I am trying to access the {{url}}/api/v1/auth/facebook in postman, but I am getting the following error: </p>
  
  <blockquote>
    <p>"The parameter app_id is required"</p>
  </blockquote>
  
  <p>Inside <code>devise.rb</code> I've the following config settings <code>config.omniauth :facebook, Rails.application.secrets.facebook_key, Rails.application.secrets.facebook_secret</code></p>
  
  <p>Inside <code>config/initializers/omniauth.rb</code> </p>
  
  <pre><code>Rails.application.config.middleware.use OmniAuth::Builder do
    provider :facebook, Rails.application.secrets.facebook_key, Rails.application.secrets.facebook_secret, scope: 'email,age,gender'
  end
  </code></pre>
  
  <p>and my rake routes are as follows:</p>
  
  <pre><code>            GET    /api/v1/auth/:provider/callback(.:format)                  devise_token_auth/omniauth_callbacks#omniauth_success
              GET    /omniauth/:provider/callback(.:format)                     devise_token_auth/omniauth_callbacks#redirect_callbacks
  omniauth_failure    GET    /omniauth/failure(.:format)                                devise_token_auth/omniauth_callbacks#omniauth_failure
              GET    /api/v1/auth/:provider(.:format)                           redirect(301)
  </code></pre>
  
  <p>I am using the following gems </p>
  
  <pre><code>gem 'devise_token_auth'
  gem 'omniauth'
  gem 'omniauth-facebook'
  </code></pre>
  
  <p>In the user model, is the following piece of code:</p>
  
  <pre><code>devise :database_authenticatable, :registerable,
           :recoverable, :rememberable, :trackable, :validatable, 
            :lockable, :timeoutable, :omniauthable, :omniauth_providers =&gt; [:facebook]
  </code></pre>
  
  <p>As per the documentation <a href="https://github.com/lynndylanhurley/devise_token_auth#usage-tldr" rel="nofollow">here</a>, I am not supposed to send any parameters explicity.
  I've already defined the app_id in my ENV variables, but I am still getting this error.
  I've also tried replacing the params Rails.application.secrets.facebook_key with their actual value, but still ending up in the same error.</p>