Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OAuth2::Error , Sign in issue with Oauth-facebook

This is the error I am getting once I click on sign up and authorize the app with Facebook.

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

I don't know how to fix this and where the error is coming 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
like image 695
Richardsondx Avatar asked Dec 05 '25 02:12

Richardsondx


2 Answers

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

like image 124
Muhammet Avatar answered Dec 06 '25 17:12

Muhammet


It worked without the brackets when I took off "[" and "]"

like image 26
Richardsondx Avatar answered Dec 06 '25 18:12

Richardsondx



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!