Facebook reported a major security breach in which 50 million user accounts were accessed by unknown attackers.