People's political views could only be passed on to advertisers if the user filled out a specific section on their profiles.
Advertising was also ''Age-Gated'', Facebook said, so companies wanting to advertise alcohol would not be shown to people under the age of 18.
A spokesman for the company said: ''We understand that people share a lot of information on Facebook and we take this very seriously.
''We do not share people's names with an advertiser without a person's explicit consent and we never sell personal information to third parties.''
Sign up for Computerworld eNewsletters.