configuration - The parameter app_id is required on Heroku omiAuth facebook Integration -
i getting error "the parameter app_id required" when test facebook login in app. guess has configurations. can please check configuration files , let me know if there error. set app id , secret on heroku
heroku config:set facebook_app_id=133333333463066 facebook_secret=a7244e333333333a7a2bf9492a6089a0
here omniauth initializer file : config/initializer/omniauth.rb
omniauth.config.logger = rails.logger rails.application.config.middleware.use omniauth::builder provider :facebook, env["facebook_app_id"], env["facebook_secret"] end
my devise initializer has following line:
config.omniauth :facebook, "facebook_app_id" , "facebook_secret"
what doing wrong ?
on localhost, getting error instead:
{ "error": { "message": "missing client_id parameter.", "type": "oauthexception", "code": 101 }
}
i url when try login facebook
https://graph.facebook.com/oauth/authorize? client_id=&redirect_uri=http%3a%2f%2flocalhost%3a3000%2fusers%2fauth%2ffacebook%2fcallback&response_type=code&scope=email&state=223cbab26ab10640a2c1fe62508aecb94ffc2854721703de
as can see, client id empty in url.
Comments
Post a Comment