(click image, via) No, it wasn't a working egg vending machine. It was set up, pre-Easter, in Frankfurt, Germany by the National Organization for Animal Health (NOAH) to promote buying free-range eggs. The video notes that the chickens were only cooped up for "a couple of hours" before being returned to their farm. PETA take note of the lack of naked women used (nsfw) in the stunt. Video below. Ad agency: Publicis, Frankfurt.
Previous fake vending machines: Maker's Mark • Work Safe Victoria body parts.