Facebook is battling duelling crises as it tries to fix a large-scale outage of its dominant social network and deal with a whistleblower’s damning revelations.