Are you sure it doesn't have anything to do with transgender stuff?
Most people I know are pretty superficial anyway, except maybe for college and childhood friends, but even those usually become casual Facebook friends who occasionally post photos of their kids, dogs, etc.
Anything can make someone lose friends..changing political or religious views, for instance, moving to another country..anything that is outside the world of friends and family.
The old saying, "You can never go home" is true for everything, it seems. We grow and change and no longer fit in the little boxes we used to occupy. People often can't cope with these changes, which is why (most female) movie stars usually have to divorce and remarry once they become famous since the non-famous spouse usually won't accept it.
That's also true with success. As long as you are broke like your friends, they love you. You are one of them. If you suddenly become successful, they find they can't look down on you anymore and tend to distance themselves.
Which is probably why most people get new friends as they evolve through their lives.
I recently found out most of my old childhood friends on Facebook from missionary days are also Trump supporters, were posting racist/homo/transphobic memes, so I was the one showing rejection.
I'd warn them a couple of times in private messages, then defriend them if they didn't stop. The few I didn't actually defriend I tend to troll; if they post a glowing meme praising Trump for "Making American Godly Again" I usually make sarcastic remarks like, "SURE, like grabbing women's crotches, and insulting anyone non-white, non-hetero, non-cis, other religions, etc." so it's a wonder I have any friends left from that era.
Luckily, the world is full of people, so you can make new friends who appreciate you.