Shortest answer: it depends. Shorter answer: 3 to 9 months is about average. Longer answer: read this article, as we'll explain why it is difficult to broadly estimate how long an app takes to develop.
It takes a lot of time, money, heartache, and luck to build a successful social network. Your app probably won't ever get there, but here are a few tips for getting a little bit closer to achieving your dream.