Facebook question

I know its the wrong place…
But was just wondering with programming languages would I need to know to create my own little facebook? And how tough would it be to make it?
Cheers.
Leo.