OAuth2 :: Error logging in with Oauth-facebook

This is the error I get when I click on register and authorize the application using Facebook.

: {"error":{"message":"Error validating application. Invalid application     ID.","type":"OAuthException","code":101}}

I do not know how to fix this and where the error comes from. Here is my omniauth.rb

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :developer unless Rails.env.production?
  provider :facebook, ['I_PUT_MY_API_ID_KEY'], ['I_PUT_MY_API_SECRET_KEY'],
  :scope => 'email, user_relationships, user_status,user_about_me publish_actions',    :display => 'popup'
end
+3
source share
2 answers

It worked without brackets when I removed "[" and "]"

+1
source

mybe use
provider :facebook, ['I_PUT_MY_API_ID_KEY'], ['I_PUT_MY_API_SECRET_KEY'] in provider :facebook, "I_PUT_MY_API_ID_KEY", "I_PUT_MY_API_SECRET_KEY"

+2
source

All Articles