Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

User without username with allauth, rest_auth and facebook

I have a setup with django-rest-framework, rest-auth, allauth and facebook Oauth2. My problem here is that when I created an user using the facebook endpoint, the social user was created, the django user was also created but both have no username. Should I configure this somewhere?

like image 613
Italo Maia Avatar asked Jan 30 '26 16:01

Italo Maia


1 Answers

The username field is no longer present, because it was deprecated with Graph API v2.0 one year ago...

See

  • https://developers.facebook.com/docs/apps/changelog#v2_0_graph_api

/me/username is no longer available.

Check if you're using the newest versions of your libraries.

like image 111
Tobi Avatar answered Feb 01 '26 16:02

Tobi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!