I am sorry to hear that.
I think that you and the guy should have drawn a line between dating and friendship.
Most Americans think that it is a dating when a girl and a guy hang out together.
If they are just friends, they usually hang out with other friends, not alone.
You consumed emotion and hurt from the situation.
Please forget him. Throw away everything related with him.
Then hang out with your friends, and spend time for yourself.