In response to recent stories that some employers have been asking potential hires for their social media passwords, Facebook is weighing in. As Mashable’s Sarah Kessler reports:

This practice undermines the privacy expectations and the security of both the user and the user’s friends,” [Facebook’s chief privacy officer Erin] Egan wrote on the Facebook Privacy blog. “It also potentially exposes the employer who seeks this access to unanticipated legal liability.”

Among the risks to employers, Egan says, are that they will come across information such as age or sexual orientation that could open them up to claims of discrimination if the applicant doesn’t get the job. Employers may also become responsible for information they uncover while pursuing private profiles, such as that which suggests a crime.