Meta rose as much as 5% after the company reported stronger-than-expected revenue in the first quarter.