To be fair, the article states that the study was designed by a data scientist. Not that that implies that any additional ethical considerations were taken into account.
That said, anyone who signs up for a job at Facebook doesn't give a shit about ethical design of experiments.