Sounds like you might have opted out of sharing your data with Facebook. You can check this on your account page here. You should also make sure that Spotify is allowed to have access to personal data on Facebook's end here.
It might also be worth checking out this Spotify Answer on what to do when your username turns into a number.
Hope this helps and have a nice day!