There’s not much you can do if others think poorly of you, don’t invite you out, avoid spending time with you, talk behind your back, badmouth you.
What you can do though is change the way you think of you and others.
That will shift the perspective and put the initial problem completely out of your mind.