Earnings fell significantly below Wall Street’s expectations, though Meta said it would have exceeded projections before a hefty tax charge.