I don't think it's enough to rely on the TOS. Sure, there are obvious examples like porn on the iPhone where the TOS will give you a clear answer. Frequently, however, the TOS are ambiguous and are interpreted inconsistently. They can also be changed at will.
Sure, you're right that developers should try to give as much benefit back to their platform provider as they derive from the platform. But the fact is that different companies perceive benefit in different ways with reasoning that is opaque. Often a decision can depend on a strategic direction for the firm that you are not privy to.
All this is why the reputation of the company matters so much. From reading the article, it looks like LinkedIn not only acted in a very inconsistent manner--giving praise before shutting them down--but they even began reverse-engineering the application. That's not the kind of behavior that breeds a healthy ecosystem regardless of whether they have all the right to act that way, and regardless of whether Pealk was careless in relying so heavily on LinkedIn.
If everyone were to take a cautious approach to the APIs and platforms that big companies offer, as has been suggested in this thread, then the tech sector would be a much less interesting place. The fact is that a lot of innovation happens because there actually are API and platform providers out there that care about their developers and won't pull shit like this.