Aristide Bance was Burkina Faso's hero as he sealed a 3-2 play-off first-leg win over Algeria with a late penalty.
The Fortuna Dusseldorf striker made up for a first-half miss from the spot when he converted a controversial 86th minute spot-kick after Essaid Belkalem was controversially adjudged to have handled inside the area.
Jonathan Pitroipa opened the scoring for Burkina Faso on the verge of half-time but their lead was quickly cancelled out by Sofiane Feghouli.
Djakaridja Kone put the hosts back in front just after the hour, but Algeria again responded quickly through Carl Medjani's towering header.
Bance scored with just four minutes to play though, as his late penalty delighted the home crowd in Ougadougou.
Burkina Faso now have the advantage heading into the second leg, to be played in Blida on November 19.
Both sides struggled to create chances of note in the opening 30 minutes of the match, however as the game drifted towards the break it burst into life.
First, Burkina Faso survived a penalty shout after Feghouli went down under a challenge from Jean-Noel Lingani, however the Valencia midfielder saw his penalty claims waved away by the referee.
A minute later the referee was pointing to the spot, but at the other end, after Pitroipa was brought down by a rash challenge from Belkalem.
Bance stepped up to take the penalty but hit a tame effort that Algeria goalkeeper Adi Mbolhi saved relatively comfortably.
Luckily for Bance, his miss was quickly forgotten as Pitroipa struck in stoppage time at the end of the half.
Lingani delivered a cross into the penalty area from deep and Pitroipa – who had got away from Madjid Bougherra – headed past Mbolhi to give the hosts the lead.
The visitors were level early in the second half as Feghouli netted his third goal of qualifying with a low shot after neat link-up with Islam Slimani inside the penalty area.
Despite Algeria's second-half dominance they found themselves behind again in the 65th minute as Kone produced a moment of magic.
The midfielder controlled a loose ball on his chest, took the ball past Mehdi Mostefa-Sbaa and lashed the ball into the bottom corner for his second international goal.
Burkina Faso's lead only lasted three minutes though as Medjani rose to meet a left-wing corner to head past goalkeeper Daouda Diakite.
The hosts would not be denied though, claiming the winner with four minutes left after Belkalem was penalised for handling the ball.
It was not referee Janny Sikazwe who gave the penalty though, instead his assistant, and although Mbolhi got a hand to Bance's effort, it was second time lucky for the Burkina Faso man.
|Coach: P. Put|
for B. Koné 8'
for J. Lingani 68'
for M. Koffi 78'
|Conte eyes two Italy wins|
|Ligue 1 Deadline Day: Marseille sign three amid Martial saga|
|La Liga Deadline Day: Uncertainty over De Gea future, Joaquin back at Betis|
|Serie A Deadline Day: Juve and Inter busy as window closes|
|Layun swaps Watford for Porto|
|Joaquin makes Betis return alongside Van Wolfswinkel|
|Coventry City 2 Southend United 2: Ricketts salvages point for hosts|
|Real face anxious wait over De Gea as window shuts|
|Milan loan Mastour to Malaga|
|Juve sign Hernanes|
|Inter lure Ljajic, Melo and Telles|
|Lemina joins Juve as Marseille sign Isla and De Ciglie|
|Norwich land striker Mbokani|
|Hernanes in Turin for Juve medical|
|Blaszczykowski joins Fiorentina on season-long loan|
|Man City loan Denayer to Galatasaray|
|Matri loaned to Lazio|
|Aulas thrilled at sell-on profits from Martial deal|
|Ideye departs West Brom for Olympiacos|
|Bundesliga Deadline Day: Draxler in record Wolfsburg switch, Leverkusen and Dortmund land United men|
|Sunderland loan Giaccherini to Bologna|
|Lindegaard makes West Brom move|
|Ligue 1 Deadline Day: Martial arrives for medical at Man United|
|La Liga Deadline Day: De Gea speculation mounts, Raul Garcia joins Athletic|
|Liverpool sign Nigerian prospect Awoniyi|
|Serie A Deadline Day: Juve miss out on Draxler, Inter line up Ljajic|
|Hernandez joins Leverkusen|
|Deschamps hints Lloris could leave France camp amid United talk|
|Southampton recruit young goalkeeper Lewis|
|Giovinco ruled out of Italy qualifiers|
|World Cup winner Nesta named Miami FC coach|
|Januzaj joins Dortmund on loan|
|Dante completes Wolfsburg move|
|Draxler swaps Schalke for Wolfsburg|
|United-bound Martial hailed as ´innate talent´|
|Borini completes Sunderland switch|
|Draxler pictured in Wolfsburg kit|
|Congo v Ghana: Under-fire Grant targets friendly success|
|Antonelli doubtful for Milan derby|
|Raul Garcia completes Bilbao switch|
|Jovetic surprised by Inter start|
|Casemiro signs long-term Real deal|
|Bundesliga Deadline Day: Draxler set for Wolfsburg move, reports say|
|Sherwood would consider N´Zogbia exit|
|Ligue 1 Deadline Day: Martial´s United move edges closer|
|Fletcher lauds Evans capture|
|Serie A Deadline Day: Lemina on verge of Juve switch, Felipe returns to Udinese|
|La Liga Deadline Day: Abdennour presented at Valencia, all quiet on De Gea front|
|Martial leaves France squad to agree United deal|
|Bahebeck ´a little scared but all is well´|
|Dinamo Moscow announce Vainqueur switch to Roma|
|Ceballos uninterested in Real Madrid rumours|
|Motta thankful for Di Maria arrival|
|Marseille´s Lemina poised for Juve move|
|Benzema would have been good for Arsenal - Giroud|
|Low looking ahead to World Cup defence|
|Australia lose Mat Ryan|
|No contact from United over Cillessen, claims Overmars|
|OFC World Cup Qualifying Review: Cook Islands, Samoa start strongly|
|Neil looking to add fresh faces|
|No Jedinak, no problem - McKay|
|De Bruyne is phenomenal - Kompany|
|Van Gaal: Romero not to blame|
|Mack terrorises Palmer, Cardinals´ back-ups shine|
|Howard returns to USA squad|
|Sorensen signs for Melbourne City|
|Peralta, Montes withdraw from Mexico squad|
|Mancini: Inter need more players|
|Napoli target Soriano ´only wants Milan´ - De Laurentiis|
|Lovren determined to make amends after nightmare showing|
|Llorente laments Sevilla luck|
|Monk: Shelvey worthy of England selection|
|Sabatini apologises to Genoa over Iturbe U-turn|
|MLS Review: Red Bulls keep DC down, Sounders trump Timbers|
|Martinez: Stones didn´t mean to submit transfer request|
|Simeone hails Atletico performance|
|Di Maria: I was impatient to play|
|La Liga Review: Eibar down Supercopa holders|
|Raul Garcia set to join Bilbao|
|Garcia confident Roma are heading in the right direction|
|Serie A Review: Roma punish 10-man Juve, Eder thwarts Napoli|
|Mancini demands killer instinct from Inter after Carpi scare|
|Allegri praises Juve spirit in poor display at Roma|
|Monaco 0 Paris Saint-Germain 3: Cavani up and running as PSG march on|
|Carpi 1 Inter 2: Jovetic double settles lacklustre encounter|
|Sevilla 0 Atletico Madrid 3: Hosts thwarted once again by Simeone|
|Inter land Wolfsburg´s Perisic|
|Shelvey and Vardy named in England squad|
|Montero injury nothing serious - Monk|
|Van Gaal in the dark over De Gea future|
|Werder Bremen 2 Borussia Monchengladbach 1: Vestergaard seals first win|
|Roma 2 Juventus 1: Pjanic and Dzeko down stuttering champions|
|United could not cope with Swansea - Van Gaal|
|Monk: Swansea are a Premier League force|
|Lyon swoop for Malaga midfielder Darder|
|Tuchel hails table toppers Dortmund|
|No complaints for Neil after Southampton loss|
|Swansea City 2 Manchester United 1: Gomis spoils Van Gaal´s day|
|De Bruyne relieved to complete City switch|
|Koeman stands firm over Mane and Wanyama futures|
|Bahebeck rushed to hospital with chest pains|
|Borussia Dortmund 3 Hertha Berlin 1: Tuchel maintains perfect start|
|Manchester City complete De Bruyne swoop|
|Weihrauch strikes twice as Bayern overpower fans|
|Saint-Etienne 2 Bastia 1: Two sent off in first defeat of the season for visitors|
|Southampton 3 Norwich City 0: Tadic at the double for Koeman´s men|
|Paderborn swoop for Kirch|
|Bayern loan Coman from Juventus|
|Schalke will not rush decision over Wolfsburg target Draxler|
|Fenerbahce secure Markovic loan|
|O´Neill trims Ireland squad to 28|
|Sherwood: I´ve done my hamstring|
|Dante set for Wolfsburg switch|
|Neymar knows nothing of Man United interest|
|Ibisevic leaves Stuttgart for Hertha|
|International break unwelcome for Mourinho|
|Muto a ´perfect fit´ for Mainz|
|Lampard pledges NYC commitment|
|Van Gaal: I listen to Rooney|
|MLS Review: Whitecaps falter, Eastern Conference heats up|
|´I think a yellow would have been harsh´ - Noble baffled by his red card|
|Rodriguez´s quality ´unquestionable´ - Benitez|
|Abdennour chooses Valencia|
|Giovinco to fly to Italy despite injury|
|La Liga Review: Real Madrid, Celta notch big wins|
|Mihajlovic: I feel like I lost|
|Real Madrid 5 Real Betis 0: Rodriguez scores twice in Benitez´s first Bernabeu win|
|Balotelli has a lot of work to do, declares Bacca|