But then I'd just find another job (when it was clear that something was rotten). There's an argument here about the ethics of having helped build something that ultimately became terrible, however I don't think inability to predict the future equals complicity.
It’s virtually impossible for a company the size of Facebook to be free of controversies.