From observations and experience I have found this to be the most effective way to deal with someone ripping your heart out of your chest and squashing it.
I kid.
Even after being dumped, one still have their heart safely within their chest cavity. Remember this.
1. When told that the person you have been dating no longer wants to date you, do NOT start screaming, crying, or in any way shape or form be overly emotional. If you freak out now, you'll just be a completely illogical mess of emotions. And annoying.
2. Take a deep breath.
3. Ask why even if they just gave some reasons. Being told you're being dumped is shocking, you probably didn't really hear it all the first time.
4. Ask as many questions as possible. Yes even crazy ones, just don't use a crazy voice. Examples: Is it something I did? Is it because I'm a virgin? Is it because I'm crazy? Is it because I'm a bitch? Is it because I love cats and you don't? Is it because I'm twice your size? Is it because I'm just too amazingly awesome and you just can't handle it anymore?
5. LISTEN to their answers.
6. Tell them that you'l be cutting off all contact for a while (YES you will be doing that). If the individual is cool and it's not because they did something dreadful, explain that even though you'll be unfriending them on Facebook, unfollowing their Twitter, and unfriending them on MySpace (ha, like anyone uses MySpace), it's because you just don't want to see anything related to them for a little bit. Reassure them that all personal networking will be restored, once you can look at their picture without being sad.
7. Say goodbye. Make some jokes. Laugh awkwardly.
8. Close the door and bawl your eyes out. Scream. Yell. Curse the very Earth.
9. Take some deep breaths and make sure to drink some water after crying.
10. Unfriend and unfollow. YES. Also, change their name in your phone to be DONTCALLEx'sName. YES, we are cutting off contact.
11. Live your life. Cry as needed. Eat Nutella straight from the jar. Mourn the loss of your relationship. I advise against watching Chick Flicks though. Fight Club and other action-y movies work GREAT. Objectify men a little.
12. Wake up one day without that empty feeling.
13. Go a couple mornings like this.
14. Decide if you do indeed want to reinstate all social networking. Send requests.
15. Flirt with lots of cuties and hotties.
16. Do NOT get back together with ex unless there is some significant change. If it didn't work before, why would it magically work now? Save yourself the heartache.
And there we have it.
Short version: GET OVER YOUR EX. Don't wallow, stalk, and obsess. GET OVER THEM.
If takes time and effort to not just turn into a complete mess of sad, pitiful hopelessness. But you know what? It's just the end of one part of your life, not your entire life. There will be something else.
I recommend reflecting upon the relationship at some point. Learn from your experience, otherwise you'll make the same mistakes. Your ex is just another data point in your dating experiment that will help you conclude on the perfect mate.