# Facebook login fails with "Invalid State" error

**URL:** <https://community.auth0.com/t/facebook-login-fails-with-invalid-state-error/112930>\
**Category:** Get Help\
**Tags:** facebook-social-connection, connections\
**Created:** [August 4, 2023, 11:26pm UTC](https://community.auth0.com/t/facebook-login-fails-with-invalid-state-error/112930 "2023-08-04T23:26:39Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![michael.samorokov](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@michael.samorokov](https://community.auth0.com/u/michael.samorokov)\
**Post date:** [August 4, 2023, 11:26pm UTC](https://community.auth0.com/t/facebook-login-fails-with-invalid-state-error/112930/1 "2023-08-04T23:26:39Z")

</div>

Hi everyone!

I’m trying to integrate Auth0 into my .NET MAUI application. I’ve used [Add Authentication to .NET MAUI Apps with Auth0](https://auth0.com/blog/add-authentication-to-dotnet-maui-apps-with-auth0/) as a reference and after changing “authentication method” to None in control panel all services except FB (Apple, Google and Database) started to work.

Facebook Auth has a weird issue.  
From logged out state:

- login with Facebook
- LoginResult has Error “Invalid State”

If I’ll try again after the error (FB form is not presented as token is still valid) login works fine.  
After explicitly logging out the issue can be reproduced again.

I use development keys on my dev tenant.

Please share any ideas what I need to try next.

---

_[View the full topic](https://community.auth0.com/t/facebook-login-fails-with-invalid-state-error/112930)._
