Catalysis of the reaction: diphosphate + nicotinamide mononucleotide = 5-phospho-alpha-D-ribose 1-diphosphate + H+ + nicotinamide.
nicotinamide-nucleotide:diphosphate phospho-alpha-D-ribosyltransferase activity