title: Python social auth for login with Facebook not working on production server
body: <p>I am using Python social auth for login with Facebook and Google with Django <code>1.8</code>.</p>
  
  <p>It is working fine on <code>localhost</code>, but when I deployed it on a production server it is not working. When I click on a login with Facebook or Google button, the browser goes into a waiting state. After some time it gives me a <code>502 Bad Gateway</code> error. I'm using <code>gunicorn</code> with <code>nginx</code> on the production server.</p>