Facebook said a software bug led some users to post publicly by default regardless of their previous settings. The bug affected as many as 14 million users over several days in May.
The problem, which Facebook said it has fixed, is the latest privacy scandal for the world's largest social media company.
It said the bug automatically suggested that users make new posts public, even if they had previously restricted posts to "friends only" or another private setting. If users did not notice the new default suggestion, they unwittingly sent their post to a broader audience than they had intended.
Erin Egan, Facebook's chief privacy officer, said the bug did not affect past posts. Facebook is notifying users who were affected and posted publicly during the time the bug was active, advising them to review their posts.
The news follows recent furor over Facebook's sharing of user data with device makers, including China's Huawei. The company is also still recovering from the Cambridge Analytica scandal, in which a Trump-affiliated data-mining firm got access to the personal data of as many as 87 million Facebook users.
Jonathan Mayer, a professor of computer science and public affairs at Princeton University, said on Twitter that this latest privacy gaffe "looks like a viable Federal Trade Commission/state attorney general deception case." That's because the company had promised that the setting users set in their most recent privacy preferences would be maintained for future posts. In this case, this did not happen for several days.
Facebook's 2011 consent decree with the FTC calls for the company to get "express consent" from users before sharing their information beyond what they established in their privacy settings. Even if the bug was an accident on Facebook's part, Mayer said in an email that the FTC can bring enforcement action for privacy mistakes.
Facebook, which has 2.2 billion users, says the bug was active from May 18 until May 27. While the company says it stopped the error on May 22, it was not able to change all the posts back to their original privacy parameters until later.
The mistake happened when the company built a new way for people to share "featured items" on their profiles. These items, which include posts and photo albums, are automatically public. In the process of creating this feature, Facebook said it accidentally made the suggested audience for all new posts public.
When people post to Facebook, the service suggests a default distribution for their posts based on past privacy settings. If someone made all posts "friends only" in the past, it will set their next post to "friends only" as well. People can still manually change the privacy level of the posts — anywhere from "public" to "only me" — and this was the case while the bug was active as well.