The author might begin like a fairy tale.... " A long, long time ago, when ....
The right answer is eum because 'him' is the object in the sentence. In Latin the object always gets expressed by using the accusative . The accusative form of is, ea, id ~ is 'eum'!