Facebook Inc. shares posted their biggest intraday gain in two months after it won a dismissal of two antitrust cases, pushing its market value above US$1 trillion for the first time.

The social-media giant jumped as much as 4.4 per cent, the most since April 29 after a judge granted Facebook’s request to dismiss the complaints filed last year by the U.S. Federal Trade Commission and state attorneys general.

The shares have advanced 29 per cent this year, after the COVID-19 pandemic increased public reliance on Facebook’s apps for staying in touch with friends and businesses, leading to steady growth in users and strong demand for digital advertisements.

Almost three years after Apple Inc. became the first U.S. company to reach the US$1 trillion milestone, there are now four other U.S. technology companies that boast 13-digit valuations including Microsoft Corp., Amazon.com Inc. and Google parent Alphabet Inc. Microsoft reached the US$2 trillion level last week.

Facebook, which Mark Zuckerberg co-founded in 2004 at Harvard University, is the youngest of them all to reach the mark, getting to US$1 trillion in just 17 years.

The growth has come at a cost. Zuckerberg has been so focused on adding users and revenue -- including by purchasing the competitive apps Instagram in 2012 and WhatsApp in 2014 -- that he chose to ignore some of the downsides of running networks that more than 3.45 billion people contribute content to.

Regulators have charged that during its ascent, Facebook lost control over its users’ data and failed to do enough to throttle the flow of potentially harmful or violent information. The U.S. Federal Trade Commission, alongside 46 state attorneys general, sued Facebook in December for anticompetitive behavior, saying the company’s size has resulted in consumer harms including reduced product quality. Zuckerberg has testified in front of U.S. Congress multiple times on Facebook’s various missteps.

Yet from the perspective of an investor, Facebook is thriving. The company faced doubts in its 2012 initial public offering that it would ever be able to make significant money off of users on mobile phones. Ever since Facebook proved that its advertising business would work there, too, it’s consistently found ways to beat expectations for revenue and earnings, and to ensure more people sign on to use its products.

Facebook said in April that revenue in the current quarter will remain steady or accelerate from the first quarter, when sales expanded 48 per cent to US$26.2 billion. Of the 58 analysts tracked by Bloomberg that cover Facebook, 49 recommend buying the stock. Six have hold ratings and three are at sell.