Mind elaborating on why you think that should be a law?
Even Reddit, which has historically been extremely open towards third party apps, now gates features - RIF for example can't integrate with rewards, which is IMO pretty moronic as it could be a pretty good revenue stream for Reddit.
Capitalism has failed, and it's high time governments step in to break open the walls of the gardens.