Facebook last night said its quarterly profit plummeted due to the cost of a US privacy settlement and forecast that regulation would slow its money-making ad machine.
Profit in the second quarter fell 49% from a year ago to $2.6 billion while revenues increased 28% to $16.9 billion.
The lower profits were due in part to Facebook setting aside an extra $2 billion to cover a massive settlement with US regulators on privacy and data protection.
The $5 billion settlement announced by the Federal Trade Commission calls for revamped federal oversight of the social network's privacy policies.
Facebook also will be required to conduct a privacy review of every new or modified product, service, or practice before it is implemented, including for its WhatsApp and Instagram services.
In the earnings report, the leading online social network beat market expectations on revenue and user growth, and shares rose slightly in after-hours trade that followed release of the earnings figures.
"We had a strong quarter and our business and community continue to grow," said Facebook chief executive Mark Zuckerberg.
The number of people using Facebook monthly grew by 8% to 2.41 billion in the quarter that ended June 30.
The number of monthly users topped 2.7 billion when taking into account Instagram, WhatsApp and Messenger along with the main social network, according to Facebook.
During an earnings call, Facebook executives warned that regulation and efforts inside the company to ramp up privacy would be "headwinds" to ad targeting that powers the company's revenue.
Compounding the effect of controls such as the General Data Protection Regulation in Europe and increased focus on privacy in operating systems and products are "creating headwinds that we think are going to impact us as we get later in the year and into 2020," said chief financial officer David Wehner.
Privacy and compliance efforts also require significant investment in process, people and infrastructure, he added.
The Facebook workforce had grown to 39,651 by the end of the quarter, with the Silicon Valley company hiring aggressively, particularly workers focused on security, privacy and eliminating content deemed unacceptable.
Mark Zuckerberg renewed his call for legislators around the world to set clear, uniform standards on important issues such balancing free speech with fighting online bullying or election meddling.
"Either the right regulations will get put into place, or we expect frustration with our industry will continue to grow," Zuckerberg said.
"We think that having a more democratic process for setting what some of those norms are would be helpful," he added.
Also factored into the quarterly results was a tax expense of $1.1 billion stemming from a court decision on the treatment of stock-based compensation.
Facebook shares gained 1.1% during yesterday's trading session and swung slightly higher in after-hours exchanges following the earnings release.