Confront him. You don't need to put up with his s**t. Tell him to back the f*ck off and give you space or you won't want to be his friend. If he's going to have a crappy attitude, he can do it by himself. If he continues to do stupid things like that, just stop talking to him or something.
He has no right to be in your business. He's no longer your boyfriend and doesn't need to know who you are talking to all the time. He can put on his big girl panties and deal with it. [lol!]
Guys can be real idiots. [No offence to you good guys out there.]
Hope this works out for you!
-Mel-