# Login with Facebook without email address

**URL:** <https://devforum.okta.com/t/login-with-facebook-without-email-address/15484>\
**Category:** Questions\
**Created:** [August 11, 2021, 11:46am UTC](https://devforum.okta.com/t/login-with-facebook-without-email-address/15484 "2021-08-11T11:46:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tiagojsag](https://avatars.discourse-cdn.com/v4/letter/t/f1d935/32.png) [@tiagojsag](https://devforum.okta.com/u/tiagojsag)\
**Post date:** [August 11, 2021, 11:46am UTC](https://devforum.okta.com/t/login-with-facebook-without-email-address/15484/1 "2021-08-11T11:46:36Z")

</div>

Hi everyone,

We’re using Okta as the auth provider for our app, and are using Facebook as one of the identity providers, so users can login using their FB accounts. We’ve recently hit a snag: Okta seems to require FB to provide the user’s email address, but that is not a sure thing - for example, users can opt out of sharing their email addresses with Okta.

When this happens, the login process fails with something like:

> Unable to process the username transform. A required property is missing. Missing field: ‘email’.

I can’t seem to find any docs describing how Okta can be configured to handle this - for example, by re-prompting for the info, or by generating a fake email address.

I was wondering if anyone out there had experienced the same issue, and how you tackled it.

Thanks

---

<div class="post-metadata">

**Author:** ![sigama](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/sigama/32/5811_2.png) [@sigama](https://devforum.okta.com/u/sigama)\
**Post date:** [August 11, 2021, 9:27pm UTC](https://devforum.okta.com/t/login-with-facebook-without-email-address/15484/2 "2021-08-11T21:27:34Z")

</div>

Hi @tiagojsag! You are right Okta requires the email address for the following purpose:

> By default, Okta requires the `email` attribute for a user. The `email` scope is required to create and link the user to Okta’s Universal Directory.

> **[Social Login | Okta Developer](https://developer.okta.com/docs/guides/social-login/facebook/main/#create-the-identity-provider-in-okta)**
>
> (Add a social Identity Provider) Okta supports authentication with social Identity Providers. Get an overview of the social login process and prerequisites, as well as the setup instructions.

I don’t see a current way around this other than to let users know to share their email. I would also encourage you to create a feature request on our Ideas portal to let our product team know about this option on FB’s end - [ideas.okta.com](http://ideas.okta.com).

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [February 12, 2024, 9:03pm UTC](https://devforum.okta.com/t/login-with-facebook-without-email-address/15484/3 "2024-02-12T21:03:18Z")

</div>

Closed on February 12, 2024, 9:03pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
