title: Facebook Omniauth: Sorry, something went wrong. We're working on getting this fixed as soon as we can. Go Back
body: <p>In my rails app, I configured omniauth-facebook, which was working perfectly fine. But after deploying my app to Heroku,<a href="https://habitude-helper.herokuapp.com/" rel="nofollow noreferrer">https://habitude-helper.herokuapp.com/</a>, now I get an error if I try to Login or Sign up with Facebook.</p>
  
  <pre><code>Sorry, something went wrong.
  
  We're working on getting this fixed as soon as we can.
  
  Go Back
  </code></pre>
  
  <p>My site URL on the Facebook app is <a href="https://habitude-helper.herokuapp.com/" rel="nofollow noreferrer">https://habitude-helper.herokuapp.com/</a>, and link to authorize with Facebook is: 
  <a href="https://www.facebook.com/v2.6/dialog/oauth?client_id=27910077666246&amp;redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Ffacebook%2Fcallback&amp;response_type=code&amp;scope=email&amp;state=59471e0bc7f573b2a1aa55261768443384cbc16e38a73571" rel="nofollow noreferrer">https://www.facebook.com/v2.6/dialog/oauth?client_id=27910077666246&amp;redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Ffacebook%2Fcallback&amp;response_type=code&amp;scope=email&amp;state=59471e0bc7f573b2a1aa55261768443384cbc16e38a73571</a></p>
  
  <p>I googled a lot about this issue and also changed  source of my omniauth.rb file according to this <a href="https://stackoverflow.com/questions/40290287/rails-5-devise-omniauth-facebook-error-sorry-something-went-wrong">answer</a> on stackoverflow.</p>
  
  <pre><code>Rails.application.config.middleware.use OmniAuth::Builder do
    provider :facebook, ENV['FACEBOOK_KEY'], ENV['FACEBOOK_SECRET'], scope: 'email', info_fields: 'email,name'
  end
  </code></pre>
  
  <p>But didn't help. I would just like to clarify that I am not using devise. I am using Bcrypt gem. </p>
  
  <p>Any suggestion to solve this error?</p>