Both used Facebook data, but the comparison doesn't go further. The Obama campaign did something very different - as different as legal, ethical medical experiments using informed consent and the tests on the Tuskegee Airmen. I won't repeat what was said elsewhere:
https://news.ycombinator.com/item?id=16630214