If your friend doesn't know that you like the boy, don't hate her for falling for him. I think you should explain the situation to your friend, and tell her how much he means to you. If the boy likes you, your friend won't want to come between you. Idk, I've never been in that position. Good luck with whatever you decide to do!:)
Neki794