Login form weird error

I’m experiencing the very strange behaviour that anvil.users.login_with_form() is throwing

ImportError: No module named facebook

Any ideas? There is a login_with_facebook() method, but I’m not using it.

Do you have the Sign in with Facebook box checked in the Users service?

image

If so, you also need to add the Facebook service (or uncheck the box):

image

We haven’t made this at all clear! I’ve made a note to improve how this is documented.

That was easy! Thanks Shaun. The funny thing was it was working earlier. I guess I could have switched that on with a stray click.