Well, professionally speaking, your obsession with this is an underlying (root cause) condition of not liking yourself. The "trick" is to transfer your attention on whether or not people like you to a laser focus on why you don't like yourself. Now, your brain (subconscious) will try to prevent you from doing this for obvious reasons. YOU have to take charge and focus on the reality of the situation. Keep in mind, the objective is not to wallow in not liking yourself. Instead, it is to...
1. Acknowledge your situation.
2. Understand the basis for your situation.
3. Resolve the reasons for your situation.
In other words, you want to come out of this with liking yourself. The test of success will be you are no longer interested in whether people like you or not. Oh, you will be aware that some people don't. And, you might decide to make some alterations to accommodate them... to be social. But, it won't really matter to you because you will know (in your heart) YOU like yourself. And that will matter more.
This is hard work and it won't happen on time schedule. If you do it right... if you commit to the program... it will be an emotional rollercoaster and you will realize why your subconscious tried so hard to keep you off this track. Long term though, it will free you from being enslaved to this obsession and you will feel it.
All the best.