Fear and Judgement

Why am I afraid of people not liking me? I fear that because the fear is painful, and I am blaming them for the pain I feel. If I think people don't like me to any degree, I feel fear, anger, or hatred, and that pain makes me hate them, and I feel ashamed because of that. All the spiritual texts say that we are to be good to everyone, inside and out, and love everyone, even those who have done wrong. I'm a work in progress. Forgiveness is the medicine I'm using to heal my fears.