Meta shares rallied after the company reported better-than-expected revenue and told investors that it’s getting more efficient.