For context, a worker on an H1-B can be in the US for a total 6 years. Within that time frame, their employer can sponsor them for a green card, which allows them to stay indefinitely and keep the job. However, through the lens of the government, what actually happens in this transition is that the H1-B worker’s job disappears and a new job appears. The H1-B employee must apply to this job and compete fairly with Americans for it. If they come out winning, they can get a green card. Otherwise, the American gets the job and the foreigner goes home, probably. These job offers have to be posted in a variety of ways endorsed by the government.
From my read looking at other articles on the matter (https://www.reuters.com/legal/litigation/facebook-face-claim...), Facebook is accused of not circulating enough these job postings to and making it too easy for the non-American they already hired to keep their job. They’re not creating jobs that entire populations except the US can see.