Mark Zuckerberg, Meta’s chief executive, spent the past two years weathering a slump in digital advertising and