I don't think facebook engineers or data scientists care what people feel when they're adjusting their models, they only care about time spent on their platform or some other overly reductionist metric. One could argue that chasing super-efficiency will always result in abominations, but I think its hard to say that someone is doing something imoral by just doing the human equivalent of gradient descent in the optimization problem of driving engagement. That's not to say that we shouldn't have a conversation about this and not figure out ways to make these super efficient and powerful companies find ways to be satisfied with organic engagement.
What if an almost-suicidal person got the "b" version?
A/B testing should be used when you think, in good faith, that BOTH "a" and "b" versions could be good and want to know which one works better, not to confirm a hypothesis that "b" has a negative impact on users' personal lives.
A/B tests for the case where you honestly, in good faith, think both A or B could be good designs, but you don't know which one is better.
A/B testing is for product design changes, not psychology experiments. It is NOT for the primary intention of a psychology experiment with a group of subjects that didn't consent to a study, where either A or B has a suspected negative impact on emotions, and you're using A/B testing to confirm or deny that hypothesis.
If this is the hypothesis they are testing for, the problem is they subjected people to a psychological experiment without consenting to it, for the ultimate purpose of their own financial gain.
How is that not malicious intent?