A flame is a collection of very excited gases that give off light and heat. Photons are what light is comprised of. They are small packets of light waves with a definite energy that is dependent on its frequency. Therefore a flame emits photons but isn't made from them, it consists of excited gas.