question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Facebook backend not retrieving email

See original GitHub issue

We recently experienced an issue where the response from the Facebook graph API at /me just after authenticating didn’t contain an email field. It’s hard to say if this issue is present for everyone, or whether it’s just an issue with our site - in Ruby’s omniauth, users experiencing the issue seemed to be experiencing it intermittently: https://github.com/mkdynamic/omniauth-facebook/issues/61

Adding SOCIAL_AUTH_FACEBOOK_PROFILE_EXTRA_PARAMS = {'fields': 'id,name,email,first_name,last_name'} to our settings made it work.

To avoid this problem in the future, perhaps it would be good to have the user_data method make the request with a reasonable default set of fields, including email?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
zxwildcommented, Nov 3, 2017

@dmwyatt I just realize, my adblock (ublock) blocks the facebook docs section as a social ads, <div class="section" id="facebook"> First time I see such thing, just empty page, only the menu is shown.

1reaction
dmwyattcommented, Nov 3, 2017

@zxwild What do you mean the docs are removed? The link in my comment just up thread a bit still works…

Read more comments on GitHub >

github_iconTop Results From Across the Web

I'm not receiving email notifications about my Facebook account.
I'm not receiving email notifications about my Facebook account. · Try these steps if you can't find your Facebook signup confirmation email. ·...
Read more >
Not getting email from facebook API while login - Stack Overflow
The issue occurs when you have made the Facebook account with an email address and have not confirmed the email to be ...
Read more >
Facebook not always returning email for user? · Issue #61
I've looked all over the Facebook docs and can't seem to figure ... Facebook backend not retrieving email python-social-auth/social-core#131.
Read more >
Manage Users | Firebase Authentication - Google
The Admin SDK provides a method that allows fetching the profile ... If the provided email does not belong to an existing user...
Read more >
Authenticate with a backend server - Google Developers
Warning: Do not accept plain user IDs, such as those you can get with ... in the response to determine when you should...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found