A flame photometer is a device used to determine the concentration of certain metal ions in a solution by measuring the intensity of light emitted from a flame. It works by nebulizing the sample solution into a flame, where the metal ions are atomized and excited to emit light of characteristic wavelengths. The intensity of the emitted light is directly proportional to the concentration of the metal ion in the original solution. Common metal ions that can be analyzed using flame photometry include sodium, potassium, lithium, and calcium.