Meta, the parent company of Facebook, Instagram, and WhatsApp, faces a legal challenge from writers alleging illegal use of their works to train AI models.