A US federal judge ruled on Monday that Facebook must face a class action lawsuit alleging that the social network unlawfully used a facial recognition process on photos without user permission.