Facebook's operations chief said the world's largest social network needed to earn back public trust and was investing billions of dollars a year to improve the security of its network.