The images by Saeed Gholamhoseini were shot in Shahriar, some 20 kilometers west of Tehran, and published in the Shahrvand daily, which said some 50 men, women and children, many of them drug addicts, live in the cemetery.
In one of the images published this week, a grime-streaked man rises out of a grave, smoke from a fire providing warmth inside rising around him. Others gather for warmth, smoking. Even in Iran, where unemployment runs high and its currency has fallen drastically against the US dollar, the photos have struck a nerve.
"Today, I read a shocking report about men, women and children who are living in graves of a cemetery near Tehran in these cold nights and now I am full of shame and have tears in my eyes," Farhadi wrote.
Rouhani himself responded today to both Farhadi and the images.
"We had heard some poor and homeless people are sleeping in cartons or under bridges, but we hadn't heard about them sleeping in tombs!" he said.