This Justice League Animated Magic Show Candy Dispenser was produced in 2006 by Kandy Kastle, Inc.
Even though still marketed as Justice League, for the animated series, by 2006 the show had already been re-titled Justice League Unlimited and was in its last year. The back of the card also features the Cartoon Network logo.
When the candy is loaded into the dispenser, there is a lever on the side that, when cranked, a candy is ejected from the slot on the front of the dispenser. When this happens, the face rotates to a different character. There are four character faces in all: Superman, Wonder Woman, Batman, and The Flash.