A Taiwanese tycoon was jailed for four years over a tainted cooking oil scandal that sparked widespread public outrage across the island.