Pulling user data(and friend data) from the API was "fair game" pre 2014. It was an explicit permission you could ask for.
Gleaming insights from that data and then using that data for targeting on FB is/was the point.
Creating an app that collected the data under false pretenses, transferring that data to another 3rd party and then claiming you never had that data makes it a different situation.