The settlement resulted from a class-action lawsuit against Facebook that accused the company of selling user data to third parties without consent.