How do I get over a friend who still likes me but now has a girlfriend because I said no to him a while ago?

He liked me, I didn't like him back a few years ago but now I like him, he made me think he was single and only told me he was with someone when pressed. He still wants to meet up for lunch, dinner etc but it's not the same now I know he's with someone. It won't go anywhere obviously, I still like him but know I need to back off and stop wasting my time pining over him. Any tips?

How do I get over a friend who still likes me but now has a girlfriend because I said no to him a while ago?
Post Opinion