Facebook discovered a security breach that allowed hackers to access information for up to 50 million user accounts. The company announced the news on Friday.