Facebook has admitted to a bug that exposed millions of users&#039; contact information inadvertently.