- "No shirt, no shoes, no service" is a rule that applies to all customers, same with blocking customers that develop toxic behavior.
- Specifically targeting and dropping service for someone who launched a different competing service, for that reason, is anti-competitive.
The example I'm thinking of is Microsoft with Internet Explorer, where users were unable to use a browser of their choice. Here a company is not being allowed to use an API, but users are not prevented from using the product if they'd like. They just won't get all the functionality of Facebook within that company's product.
Facebook's behavior seems more comparable to Apple disallowing use of privileged iOS APIs in competing mobile browsers rather than Microsoft not allowing users to install competing browsers. But I'm not an expert on monopolies, so I'm happy to be corrected here.
__________________________
1. NB - I'm not making a claim or observation about ethics or what ought to be, I'm asking about what is, legally.
I'd gather that the same might apply to sale/no sale and not just prices, i.e. you can't not sell something to someone purely for competitive reasons, there has to be 'some reason'.
[1] https://definitions.uslegal.com/p/price-discrimination/
Full disclosure: I'm definitely not a lawyer.
So that's not a good example.
We're talking about a store arbitrarily discriminating between customers on terms of it's own choosing.
... which is what makes it harder.
As for your 'software sold after the fact' ... welcome to iOS / AppStore to see who 'controls' what :)
A free online service running on hardware you don't control isn't obligated to provide free service for everyone indefinitely. Same as "No shirt, no shoes, no service". A proprietor can refuse dealings with toxic customers.