(CNN) A police officer detained and cited a man eating a sandwich on a San Francisco train platform, a confrontation captured on a viral video.

In the video posted on social media, the Bay Area Rapid Transit policeman told the man, later identified as Steve Foster, that eating on the platform is against state law. The officer keeps his hand on Foster's backpack while Foster angrily addresses the camera and the officer.

Foster insisted he was doing nothing wrong and refused to give his name. The November 4 incident escalated and Foster was handcuffed when a second officer arrived at the train platform.

"I'm definitely upset, mad, a little frustrated, angry about it," Foster told CNN affiliate KGO

BART spokesperson Alicia Trost said Monday that an officer issued a citation to Foster but did not arrest him. "The court will determine level of fine he should pay," she said.

Read More