Social media platforms must restrict the use of personal data for targeted advertising, to comply with the bloc’s regulatory law, the Court of Justice of the European Union ruled on Friday. The ruling comes as a blow to social media giant Meta.

Meta collects digital data of users of its social media platform Facebook when they visit other websites and use third-party apps, which allows Meta to personalize advertising.

But under theEU’s General Data Protection Regulation (GDPR), companies are obliged to adhere to the principle of “data minimization,” restricting the amount and duration of data used for advertising purposes…