In the Nazi Germany example, it was a government entity that was using the information. In that case no amount of privacy controls will protect you - if the information is available they can use the law to retrieve it. Even if Jews didn't have their religion listed on their passport, a government can retrieve that information in other ways (not least compulsory questioning).
In Facebook's case they are selling information to other companies. If the government wants they information they can legislate to get it from anywhere at all (including active surveillance), and so the fact you have shared it on Facebook merely minimises friction for them.