The US first daughter is seen in the photo dressed in a black gown alongside her husband Jared Kushner.
One of their sons is seen dressed as the stormtrooper as he posed with them for the photo.
“The Force is strong in my family,” Ivanka wrote in the caption of the photo.
Hamill retweeted the photo with the caption: “You misspelled “Fraud”.”
Hamill also added the hashtag “#GoForceYourself”.
His tweets drew mixed reactions. Some found him hilarious but some criticized him and said his comment was an attack on Ivanka’s child.