How do you get over someone you're in love with?

He's my best friend. Has been for years. We recently had a fling, kissed, shared all these feelings for eachother and then he tells me he will never feel more than friendship for me. Idk what to do. I don't want to loose his friendship, but it's difficult to go on knowing that just last week he said he loved me.