SAN FRANCISCO — Facebook is taking steps to open a sales office in China to work with local advertisers, according to people with knowledge of the matter, in a move that would put the social network's employees in the country for the first time, even as its service remains censored there.