Meta Platforms shares are trading higher after the company reported better-than-expected Q2 results and issued strong guidance.