How do I get over him?

We broke up and became friends two days ago and it breaking me, how am I supposed to be friends with someone that i loved for three years, all my firsts I don’t hate him but I feel so broken.... what do I do?