All of those companies are problematic to a certain degree. Personally, whether I'd have an issue with working for one of those companies also depends on what I am working on. Let's say that one of those companies pays you to work on an open source project. Would that really be that bad ethically? What if you worked on Facebook's security team securing the users' data? Is that really worse than working for LinkedIn implementing some new dark pattern to get the users to receive more email spam? At the end of the day, you'll have to make compromises, unfortunately.