It's easy for social media companies to break third party clients on a whim, or ban the users. I don't think any legal gray areas are the problem. You'd have to force companies to allow third party clients if you want them to be viable on most platforms.
It's actually only easy for them to stop this because reverse engineering their code, extracting secrets, and then selling a product with those secrets is forbidden by law.