A federal appeals court on Thursday rejected Facebook Inc.'s effort to undo a class action lawsuit claiming that it illegally collected and stored biometric data on millions of users without their consent.

The 3-0 decision from the 9th U.S. Circuit Court of Appeals in San Francisco over Facebook's facial recognition technology exposes the company to billions of dollars in potential damages to the Illinois users who brought the case.

It came as the social media company faces broad criticism from lawmakers and regulators over its privacy practices. Last month, Facebook agreed to pay a record $5 billion fine to settle a Federal Trade Commission data privacy probe.