There are plenty of American companies that are doing fine in the China market. The automakers, Starbucks, even Disney does okay. Apple is doing alright, supposedly.
Tech companies don't do well because they tend to be staffed by people who 1. rebel against authority and 2. think that the liberal / anarchist parts of Western culture are the best way of doing things. What Uber did pissed off people in San Francisco, so it's small wonder the authorities would come down hard on them in China.
The word on the street is that people in China thought Googlers (and American software engineers by extension) were a tad insufferable and arrogant. One ought to be warned, that being arrogant is a surefire way to get people to beat you at any cost. And to be clear, I fit in that category myself.
At some point, I got off the high horse as far as China-this, China-that. Why? Partly because it didn't really seem important anymore, and partly because a lot of things that you can criticize China about, the U.S. has done as bad, and I don't like being hypocritical to that degree. You know what politicians like to do when things aren't so great? Point fingers at someone who's "worse." So really, in my view of things, FB and GOOG not succeeding in China would be a small price to pay for actually paying attention to things not right in the U.S.