It is a horrible thing to hear, no matter how they tell us.
And the next thing to hear is almost impossible to believe. You will feel better again, eventually. When, is just up to you.
Now, more than ever, you need to put one foot in front of the other and GAL. It will not be easy at first. Detaching is no longer a choice, it's mandatory.
Start with little things. Go rent and watch an up beat movie. Go to the park for an hour. Go to the library. Put yourself out there in the real world, among other people, even perfect strangers. You will have to force yourself to put on a brave face and you will be practicing it so that eventually it becomes real.
And make the opportunity to talk with people, even if it's perfect strangers, about anything that is not related to your sitch.