Fe2O3 and Fe3O4 are two different compounds, both are mainly ionic.
Fe2O3 is named as iron(III) oxide. In its lattice, there are Fe3+ and O2- ions in mole ratio 2:3.
Fe3O4 is named as iron(II) iron(III) oxide, and its formula is sometimes written as FeO•Fe2O3. In its lattice, there are Fe2+, Fe3+ and O2- ions in mole ratio 1 : 1 : 4.