Google and Facebook were never wholesale banned by China. You can see this with the fact that Google tried to re-enter China with project Dragonfly (a China-law compliant search engine), until it internally became politically unfeasible. Note that Microsoft operates Bing in China, and Yahoo as well.