Yeah, come on. You do not get over this. It affects you. It's extremely hard to trust again. All you can do is hope karma kicks some butt.
It did with my ex, he stayed with her for less than 6 months and realized he really screwed up. It was too late to come back home, but I do appreciate that he regrets what he did.
Do not do the what did I do or not do right thing. It won't help and won't make a bit of difference. Your h messed up and so did your friend. You have to go on and make new friends. It will be slow, and it will be hard, but get out of the house when you can, keep busy, find any way possible to be distracted and not think about it. Trust me, I spent a month in bed doing the why me thing. All I succeeded in doing was to really scare my girls.
I went to work, I went to college, and when I can, I do things that I enjoy, especially if he didn't. I've been doing a lot of firsts in the last 8 years. I've grown a lot, and I feel so much better than I did back then.
But yeah, this you won't get over.
I am really sorry this happened to you. It royally sucks. But you will be alright.