Employers ask job seekers for Facebook passwords

I am pretty sure it is against the law to ask someones age in a job interview. but yeah i guess there are ways of discovering it anyway