Facebook is not technologically primitive. Unlike some earlier, similar services, it scales. This is no accident, but has to do with clever things like Thrift (go google it). Also, I remember the current CTO of Facebook as being extremely smart even by the standards of the good CS school we both attended.