Your friends may not hate you per se, which means that you only need to get friendlier to them and the coffee invitations will start streaming in. Smile more often and make kind, pleasant compliments to them. People always appreciate positive feedback. Be sure to feel genuine for them to sense your sincerity.
They're not your friends. That's when you start associating and talking to new people, get to know them, then ask to hang out with them. Become friends with other people! That's what I did when that happen to me in high school. Uh-uh no way I was putting up with that garbage! You shouldn't put up with it either. Slowly branch away from them, which should be easy if they already are doing it to you.