you have to make sure your background is as different as possible from your skin colour, hair colour, and clothes, and make sure you don't cast a shadow on your background.
It's actually pretty complicated to get it just right. This shot took me half an hour to figure out the right setting.