e-mail as username when using facebook not working
See original GitHub issueI have set SOCIAL_AUTH_USERNAME_IS_FULL_EMAIL = True
in my settings, but still username for users registering via facebook have username FirstnameLastname. What should Ido to make the setting work?
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
Possible issues creating a Facebook account with your email
There are a few reasons you may be having trouble creating a Facebook account with your email address. If you follow these steps...
Read more >Email Already in Use - Facebook
If there's already a Facebook account associated with your email or phone number and you don't own that account, please use this form...
Read more >Recover Your Facebook Account if You Can't Log In.
1. Go to the Find Your Account page at facebook.com/login/identify and follow the instructions. · 2. Search for the account you want to...
Read more >Add or remove an email from your Facebook account
1. Tap in the top right of Facebook. ; 2. Scroll down and tap Settings. ; 3. In the Account Settings section, tap...
Read more >I used the wrong email to create my Facebook account. How ...
1. Make sure that you have a secure email that only you can access. ; 2. Go to facebook.com/confirmemail.php. ; 3. Enter your...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ivellios, @omab, there are a few issues with using just email address as the main account:
To solve these problems, I created a custom get_username pipeline:
In settings:
If you have a custom User (BaseUserManager) that only takes email address, you need to let social-auth pass the field ‘username’ or else it will crash:
It takes a while to solve this (plus handling email/password registrations without social networks) but it ends up working great.
I got the same problem but, just adding
SOCIAL_AUTH_FACEBOOK_SCOPE = ['email']
SOCIAL_AUTH_FACEBOOK_PROFILE_EXTRA_PARAMS = { 'fields': 'id, name, email, age_range', }
solved my problem ✌️