Hansen began acting with guest-starring roles on series such as Grounded for Life, That's So Raven, and Las Vegas.
[citation needed] In 2011, Hansen portrayed Ben Lewis on the NBC sitcom Friends with Benefits.
[4] In 2012, he began a recurring role as Andy, the candy shop owner, on the CBS sitcom 2 Broke Girls.
The same year he had a supporting role in the film Hit and Run alongside Dax Shepard, Kristen Bell and Bradley Cooper.
[8] In 2010, he appeared in the online series The LXD: The Legion of Extraordinary Dancers, with 50% of the profits going to the Invisible Children campaign.