I don't think that is anti-competitive under the legal[1] interpretation, but I could be wrong. My understanding of the legal precedent here is that a company is allowed to disallow service for any reason whatsoever as long as there is no contract in place. The only time it becomes anticompetitive is if a product prevents users or customers from being able to access the competing product.
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.
From [1] "Price discrimination is made illegal under the Sherman Antitrust Act. 15 U.S.C. §2, the Clayton Act, 15 U.S.C. §13, and by the Robinson-Patman Act, 15 U.S.C. §§13-13b, 21a, when engaged in for the purpose of lessening competition, such as tying the lower prices to the purchase of other goods or services."
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'.
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.