I've been there and the LAST thing you need to do is stay home all the time. Even if you feel that being with friends is not helping you (it may not now), don't stop doing it. Keep on living your life, keep yourself busy, do things you're passionate about, go out. The only way you're not gonna get better is doing nothing.
Trust me, you'll get there. It's been three years since it happened to me, and even though I still haven't fallen in love again, I've learned that going through this kinda stuff really helps you grow on all levels. Blocking your ex on social media does wonders too.
Sorry for the long post, hope I helped
