I don't think Facebook
has any "secret sauce". The integration and scale is certainly impressive, but there's no part of the functionality which is at all mysterious to me. Unlike, say, Google Search, everything on Facebook appears pretty straightforward.
They did open-source HHVM, React, GraphQL, and Cassandra, which are the closest things I can see to a secret sauce.