The incident, which also affected WhatsApp and Instagram, was caused by a small mistake that led to big problems.