Search code examples
djangodjango-allauthfacebook-authentication

How to fix "Facebook has detected MySite isn't using a secure connection to transfer information" in social-auth-app-django?


I have no idea why I'm getting this error, I'm all ears to hear from you.

Facebook has detected MySite isn't using a secure connection to transfer information


Solution

  • That is because you're not using https connection to send a secure data. That means your redirect url needs to be encrypted with ssl, otherwise facebook will show that message. So you need to get a certificate for that return url domain you provided facebook. Its also bad practice to send sensitive data over http as the data would not be encrypted and would be prone to interceptions like man-in-the-middle etc.