Striker Fanye was the toast of the afternoon, scoring just five minutes after coming on for Mohamed Lamine. It was Fanye's second goal of the tournament, having also found the target in the 1-0 win over Senegal in their previous game.
Losing side Morocco exited the tournament together with Senegal who played to a goalless draw with Cameroon on Sunday.
Following Sunday’s matches, only a point separates group leaders Cameroon and Guinea, while Morocco finished at the bottom of the table with just a point.
Cameroon will now meet Group A runners-up Angola in Wednesday’s semi-final, while Nigeria take on Guinea in another last-four tie on the same day.
This follows the Golden Eaglets of Nigeria's 1-1 draw with Uganda which confirmed that they finished at the top of Group A on Saturday.
On the same afternoon, Angola advanced to the semi-finals with a 4-2 win over hosts Tanzania.