From the article it sounds like Facebook made a huge investment in people to build the bespoke (software) infrastructure that they needed. eg. A bespoke in-memory database, their "own storage system called Haystack that's completely built on top of commodity hardware", etc.
Facebook have an order of magnitude more employees than Twitter which probably makes those kind of bespoke uber-scaling advancements feasible.