I want to get over the fact that my friend doesn't like me
why do you think he doesn't like you?
He has an opposite political opinion.
If he cannot respect your political opinions, you shouldn't be friends with him. It's alright if he doesn't like you.
People resent you when your opinion differs from the majority's opinion.
Very true and you shouldn't be upset for having opinions different than others.