The passwords of millions of Facebook users were accessible by up to 20,000 employees of the social network, it has been reported.