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 Bakary Koné 8'
for J. Lingani 68'
for M. Koffi 78'
|Everton fan passes away after taking ill at Goodison Park|
|Napoli 4 AC Milan 2: Milik and Callejon at the double against Montella´s nine men|
|Aubameyang eyes Lewandowski duel|
|International break timely for Hull recruitment - Phelan|
|Real Madrid 2 Celta Vigo 1: Late Kroos strike saves hosts|
|Mourinho worry over Fellaini back injury|
|Allegri marvels at ´exceptional´ Khedira|
|Mourinho promises more chances for matchwinner Rashford|
|We didn´t play our best - Tuchel|
|Rashford: Setbacks part of football|
|No hiding, Arsenal want the title - Cech|
|Hull City 0 Manchester United 1: Rashford´s late show thwarts Phelan´s battlers|
|Bamford nearing Burnley loan|
|Leicester proved they are still one of the best - Guidolin|
|Pardew stands by unsettled Zaha|
|Koeman sympathises with Hughes´ frustration|
|Lazio 0 Juventus 1: Khedira nets again as Allegri´s men prevail|
|Moyes defends Pickford after late howler|
|Conte: Hazard can still improve|
|Hughes bemoans confusion over new refereeing directives|
|Howe regrets Bournemouth caution|
|Home draw leaves Puel frustrated|
|´A goalscorer never forgets´ - Ranieri thrilled as Vardy returns to form|
|Derby sign Vydra from Watford|
|Wenger flags imminent arrival of Mustafi, Perez|
|Crystal Palace 1 Bournemouth 1: Dann late show denies Cherries|
|Southampton 1 Sunderland 1: Pickford howler costs Black Cats two points|
|Chelsea 3 Burnley 0: Hazard shines in dominant win|
|Everton 1 Stoke City 0: Joy for Koeman at Given´s expense|
|Leicester City 2 Swansea City 1: Vardy and Morgan give champions first win|
|Watford 1 Arsenal 3: Sanchez inspires Gunners´ first win of the season|
|Borussia Dortmund 2 Mainz 1: Aubameyang double seals winning start for Tuchel´s men|
|Klopp defends benching Sturridge|
|Pochettino satisfied with Liverpool draw|
|Milner: Liverpool didn´t do enough after leading|
|Lahm ready to run the hard yards for Ancelotti|
|United have the fear factor back - Shaw|
|Tottenham 1 Liverpool 1: Rose denies Klopp´s men victory|
|Donnarumma called up as Ventura turns to youth|
|´Unique, exceptional work´ - Luis Enrique hails departed Bravo|
|Luis Enrique won´t rule out Munir exit|
|Portugal´s powerhouses divide to conquer once more|
|Ter Stegen, Mascherano in Barcelona squad for Athletic clash|
|Guardiola passion infectious, says Bravo|
|Palermo confident of Balotelli deal|
|Bayern are free of Guardiola´s chains, says Scholl|
|Ronaldo: I´ll be back in no time|
|Colombia name squad for Venezuela, Brazil qualifiers|
|Pellegrini becomes Hebei China Fortune coach|
|Klopp has ´no doubt´ over Henderson´s Liverpool future|
|Lallana understands questions over Liverpool displays|
|Real Salt Lake 2 Colorado Rapids 1: Movsisyan at the double|
|Wenger insists Perez and Mustafi are not panic buys|
|Ranieri confident of Vardy resurgence|
|Atletico send Jota on loan to Porto|
|Mourinho not rushing ´super´ Mkhitaryan|
|Bayern to meet Augsburg, Dortmund face Union in DFB-Pokal second round|
|We played more directly than Guardiola´s Bayern - Ancelotti|
|Chelsea and Arsenal want Brozovic, agent says|
|Kane: I want to stay at Tottenham for my whole career|
|Al-Khelaifi pledges new deal for sought-after Matuidi|
|Bayern Munich 6 Werder Bremen 0: Lewandowski hits hat-trick as champions cruise|
|Arda dropped from Turkey squad|
|Swansea agree deal for Barnsley defender Mawson|
|Aquilani leaves Sporting for Pescara|
|Montella excited as AC Milan close in on Pasalic|
|Lopez returns to Espanyol|
|Spalletti: Uncomfortable Roma must improve in Europe|
|Karanka confirms Ayala and Espinosa fit for Middlesbrough|
|United confirm Pereira to Granada on loan|
|Hey Jorrit - Netherlands call up Hendrix|
|Soares signs new four-year Southampton deal|
|Hernandez recovering from ´perfect´ surgery after falling down stairs|
|Gotze continues wait for second Dortmund debut|
|Montella: I will sleep easier without facing Higuain|
|PSV confirm Zinchenko loan signing|
|Schalke complete Stambouli signing|
|Ronaldo omitted from Portugal squad|
|Emery wants Matuidi to stay at PSG amid Juventus links|
|Sule gets first call-up as Schweinsteiger prepares for Germany farewell|
|Montella thrilled to retain ´irreplaceable´ Romagnoli|
|Real Madrid lose Isco to ankle sprain|
|Second Barca return sits easier with Guardiola|
|FIFA proposes two-and-a-half-year ban for Qatar official Al-Mohannadi|
|Inter set to sign Gabriel Barbosa and Joao Mario|
|Arsenal loan Asano to Stuttgart|
|Bonucci out and Higuain to stay on bench for Lazio - Allegri|
|No chance City will sign more players, says Guardiola|
|Conte unsure of Chelsea additions in ´crazy´ market|
|Conte would have no hesitation starting in-form Batshuayi against Burnley|
|Mourinho: We can think we´re in the Champions League|
|Cillessen aiming to make life difficult for Luis Enrique at Barcelona|
|Mourinho aims dig at Bayern over Schweinsteiger|
|Sevilla seal Sirigu loan signing|
|´Alcacer or nobody´ in Barcelona striker hunt|
|Recovering Ronaldo remains absent for Madrid|
|Europa League draw: Man Utd to face Van Persie´s Fenerbahce, Inter get Southampton|
|Europa League draw in full|
|Zidane brushes aside Pique´s Champions League jibe|
|Barcelona flop Douglas joins Sporting Gijon on loan|
|Simeone: Congratulations to Ronaldo, but Griezmann was better last season|
|West Ham can beat Manchester City again, says Bilic|
|Zidane reiterates desire for James to stay at Madrid|
|Granada pull off Samper loan coup|
|Guardiola was in his own world, says Muller|
|Pulis understands fans´ frustrations at West Brom|
|Henry named assistant to new Belgium boss Martinez|
|Casillas, Fabregas left out of Spain squad|
|Phelan targets six new faces before transfer deadline|
|Howe wary of Benteke threat|
|Zaza set to join West Ham, confirms Bilic|
|Sunderland goalkeeper Mannone out for three months|
|PSG favourites for Champions League group - Wenger|
|Wenger ´99 per cent confident´ on Arsenal arrivals as Perez and Mustafi wait in wings|
|Europe´s top four leagues to get four guaranteed Champions League spots|
|Pardew: Zaha not going to Tottenham|
|Bacca relishing life under Montella, aims subtle dig at Mihajlovic|
|Defiant Dortmund emerge from transfer trials in fighting shape|
|Livermore: Positive cocaine test my get out of jail free card|
|Pochettino relishing Champions League bow|
|Ronaldo wants to retire at Madrid at 41|
|CONCACAF Champions League Review: Dragon hold Saprissa, Connection and Progreso draw|
|Herrera: United out to win Europa League|
|Klopp targeting a trophy at Liverpool every year|
|Granada suspend recruit Angulo over failed drugs test|
|City vow to find Hart a new club|
|Palace blast ´ridiculous´ Zaha bid from Tottenham|
|Bravo: Barca will always be in my heart|
|Almost zero chance of Juventus signing James - Marotta|
|Liverpool´s Coutinho could miss Tottenham clash|
|Bilic ´angry and frustrated´ as West Ham crash out of Europe|