"Be yourself" is not wrong, but it's not specific enough.
You can be perfectly authentic, but that doesn't mean being socially uncalibrated.
Get good at being sociable, then blend that with your personal tastes and preferences.
I thought "be yourself" was fine until I grew up and learned I was just being rude to most people and called myself introverted when I didn't make friends.