Doctors prescribe vitamin B12 shots for people with a B12 deficiency or those with an underlying condition that inteferes with proper B12 absorption.