SAN FRANCISCO — Facebook has been targeted by lawmakers over its treatment of political ads and has been misused by Russians to spread disinformation. But on Wednesday, the social network showed those challenges had little effect on its business.

The Silicon Valley company said its revenue in the third quarter rose 29 percent from a year earlier, to $17.7 billion, while profits jumped 19 percent to $6.1 billion. The results surpassed Wall Street estimates.

Facebook also reported 2.8 billion regular users across its family of apps — which includes Instagram, WhatsApp, Messenger and Facebook’s core social network — up from the year previous. More than 1.6 billion people visit Facebook on a daily basis.

Shares in the company rose about 5 percent in after-hours trading.

Facebook’s financial performance is a regular bright spot for the social giant, which has been embroiled in scandals in recent years over the way it handles customer data and the spread of misinformation. Regulators and lawmakers are now examining Facebook’s power and whether it is stifling competition. Senator Elizabeth Warren, a Democrat running for the presidential nomination, has proposed breaking up the company.