crush!! please help :(

I have had a crush on this guy for like 3 years and I don't know what to do. I think he is so perfect for me and would be an amazing couple. problem is he recently got a girlfriend.and it's making me heart broken like its never going to happen. I can't even sleep at night. now it's gotten worse he got a fb account and we are friends. now I can't go on fb because I'll end up on his page! I don't know what to do! any advice please! TIA