RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: vladCovaliov
provider :facebook, ENV['FACEBOOK_APP_ID'], ENV['FACEBOOK_SECRET']
This line of code will generate this error
(get { "error": { "message": "Missing client_id parameter.", "type": "OAuthException" } } )
for some versions of omniauth(i think from 1.0 + ). For this to work, change that line into:
provider :facebook, FACEBOOK_APP_ID, FACEBOOK_SECRET
provider :facebook, ENV['FACEBOOK_APP_ID'], ENV['FACEBOOK_SECRET']
This line of code will generate this error
(get { "error": { "message": "Missing client_id parameter.", "type": "OAuthException" } } )
for some versions of omniauth(i think from 1.0 + ). For this to work, change that line into:
provider :facebook, FACEBOOK_APP_ID, FACEBOOK_SECRET