Masking is a useful tool, but don't rely it for "love and acceptance". People who like you only because you can performs emotions at will, or fake being extroverted/cheerful/whatever, are probably not the people you want in your life.
That said, learning to mask can still be a good idea (for example, it can make it easier for you to get what you need/want when hiring tradespeople or services, etc.).
Off the top of my head, here are some ways to learn:
- People watching. Observe how they interact, both in speech and body language. Note what topics people commonly like to discuss, then practice small talk with someone who is happy to help with it. Personally I find small talk boring and tedious, but it's very useful at establishing conversation with someone so you can actually get to the more significant topics you might want to discuss.
- Reading self-help books. These might not be obvious, but books about communication (e.g. Crucial Conversations) and emotional regulation (or even more scientific or psychological works about social cues, etc.) can help you develop the tools to interact well with others (which usually leads to being more accepted).
The key thing to keep in mind is that you want to consciously learn how to do this, so you can choose which parts of the mask to deploy when you need/want to. You don't want to just default to always masking - it is absolutely exhausting and leads to burnout. It does take time and practice, though, and it's not always pleasant working out what aspects of masking you need to get along with certain people (colleagues, extended family, etc.).