# Facebook Login Error: CSRF detected

**URL:** <https://meta.discourse.org/t/facebook-login-error-csrf-detected/112599>\
**Category:** Product Support\
**Created:** [26 maart 2019 om 12:43 UTC](https://meta.discourse.org/t/facebook-login-error-csrf-detected/112599 "2019-03-26T12:43:14Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![joshm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joshm/32/135134_2.png) [@joshm](https://meta.discourse.org/u/joshm)\
**Post date:** [26 maart 2019 om 12:43 UTC](https://meta.discourse.org/t/facebook-login-error-csrf-detected/112599/1 "2019-03-26T12:43:14Z")

</div>

Hi!

My users cannot log in with Facebook anymore. This is the error log:

`(facebook) Authentication failure! csrf_detected: OmniAuth::Strategies::OAuth2::CallbackError, csrf_detected | CSRF detected`

I’m using Cloudflare in front of nginx. I’m using Cloudflare automatic SSL (flexible). I didn’t install any certificate on my server (i.e. I’m not using Letsencrypt).

Is this related to Cloudflare? Can this be solved without installing Letsencrypt?

Thanks!

---

_[View the full topic](https://meta.discourse.org/t/facebook-login-error-csrf-detected/112599)._
