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'
|United face anxious Rooney wait over injury|
|Messi making good progress|
|Ramos ban overturned|
|Osvaldo charged by FA|
|In-demand Ince offered new Blackpool deal|
|Molde confirm Solskjaer approaches|
|Kramer keen to continue home record|
|Rodgers: Henderson has potential to get even better|
|Ruiz on Anderlecht´s radar|
|Swansea, Hull fined by FA over player behaviour|
|Leeds keen on re-signing Gradel|
|Leverkusen announce Ryu deal|
|Ribery named Bundesliga Player of the Year|
|Moyes: No Zaha interest|
|Barcelona, Real Madrid in European Commission investigation|
|Basel: No Tottenham approach for Yakin|
|Chelsea set for Guarin bid, agent claims|
|Lewandowski has Dortmund goal concerns|
|Pogba, Pirlo will not sign before Christmas, says Marotta|
|Guardiola convinced to join Bayern after ´meat´ and greet|
|Martinez: Everton seen as a ´perfect´ loan destination|
|Anderlecht ´perfect´ for Defour, says Van Holsbeeck|
|Watford appoint Sannino|
|Sakho feels ´lucky´ to play with Suarez|
|Lippi: Too many teams competing in Club World Cup|
|Moyes ´told Welbeck to learn from Rooney´|
|I would kill myself over match-fixing, says Gattuso|
|Hughes dismisses calls for Januzaj protection|
|Aguero ´could miss up to two months´|
|Guardiola lauds Ballon d´Or nominee Ribery|
|Liverpool open Suarez contract talks|
|Copa del Rey Wrap: Barcelona, Levante cruise through|
|A-League Preview: Derby date beckons for winless Heart|
|Pearson upbeat despite Leicester defeat|
|Poyet urges Sunderland to build on Chelsea win|
|Mourinho rues missed chances|
|Pellegrini proud of professional Manchester City|
|Bayern on another level, says Beckenbauer|
|League Cup: Sunderland 2 Chelsea 1 (aet)|
|League Cup: Leicester City 1 Manchester City 3|
|FIFA Club World Cup: Guangzhou Evergrande 0 Bayern Munich 3|
|Zenit and Olympiacos punished with partial stadium closures|
|Sherwood wants positive reaction|
|Ancelotti expected La Liga title fight|
|Moffat charged over betting allegations|
|Wilson appointed at Barnsley|
|Wilshere charged by FA|
|Gattuso determined to clear his name|
|Moyes slams sacking culture|
|Mackay refuses to resign despite owner criticism|
|Redknapp reluctant to take Taarabt back|
|Amat pleased with development|
|Hughes optimistic of League Cup progression|
|Perez: No bids for Di Maria|
|FIFPro demand transfer system overhaul|
|Edwards sacked by Perth Glory|
|Allardyce not fearing the sack|
|Howson commits to Norwich|
|Tevez resigned to Argentina snub|
|SFA uphold Butcher´s one-match ban|
|Zapata rules out United switch|
|European Ombudsman calls for action on Spanish tax complaint|
|Albrighton eyes new Villa deal|
|Bale to miss Copa del Rey clash with ´small injury´|
|Pardew will bide his time in January|
|Kreuzer confident of Hamburg improvement|
|Van der Sar: Moyes can turn United around|
|Maradona backs Ronaldo for Ballon d´Or|
|Tottenham warned off Klinsmann|
|Costa Rica Primera Division: Alajuelense 0 Herediano 0|
|Lyon wary of Chornomorets Odesa|
|Guardiola talks up Lippi, Evergrande|
|Chile Primera Division Wrap: Chile, Deportes Iquique reach final|
|Garcia laments defensive mistakes|
|La Liga: Real Valladolid 3 Celta Vigo 0|
|Allegri pleased with Milan character|
|Primeira Liga Wrap: Pacos remain bottom, Estoril beat Gil Vicente|
|Suarez: Too early for title talk|
|Serie A: Milan 2 Roma 2|
|Mackay told Cardiff will not spend ´a single penny´ in January|
|Super Lig: Trabzonspor 2 Bursaspor 2|
|League Cup Preview: Tottenham v West Ham|
|Whitecaps appoint Robinson as head coach|
|Mikel, Luiz expecting difficult Galatasaray encounters|
|Sherwood, Ferdinand, Ramsey take temporary charge of Tottenham|
|Kovac ´shocked´ by Simunic sanction|
|FIFA Club World Cup Preview: Raja Casablanca v Atletico Mineiro|
|Betis, Sevilla expecting tough ties|
|League Cup to introduce goalline technology|
|Simunic gets 10-match ban|
|Zola resigns from Watford post|
|League Cup Preview: Stoke City v Manchester United|
|Valencia fire Djukic|
|Nedved anticipating tough Trabzonspor tie|
|Benitez wary of Swansea threat|
|Drogba relishing Chelsea reunion|
|Swansea deserve Napoli tie - Laudrup|
|Atletico relishing Milan tie|
|Winning group was vital, says Manchester United secretary|
|Tymoshchuk talks up Zenit chances|
|Rolfes relishing PSG challenge|
|Poyet unsure on permanent Ki deal|
|Arsenal ´toughest team´ Bayern could have drawn - Boateng|
|Ancelotti warns of Schalke threat|
|Miles: Arsenal paid the price for second place|
|Pellegrini undaunted by Barca draw|
|Keller eager for Real test|
|Gandini content with Atletico draw|
|Aguero to miss ´at least a month´|
|Begiristain optimistic of Manchester City progression|
|Dortmund chief calls for repeat performance against Zenit|
|Deulofeu out for ´up to five weeks´|
|Juve and Fiorentina face potential meeting|
|Juve face Trabzonspor, Napoli handed Swansea tie|
|Juventus drawn against Trabzonspor in Europa League|
|Swansea and Hull handed FA charge|
|Garcia wary ahead of Milan challenge|
|Holders Bayern draw Arsenal in Champions League|
|Allardyce in talks with striker|
|Dortmund handed Zenit test|
|Atletico drawn against Milan|
|United paired with Olympiacos|
|Barcelona to face Manchester City|
|Tottenham part company with Villas-Boas|
|Lille have nothing to lose in Paris, says Girard|
|Hughes happy with Wilson displays|
|Fletcher: I am back for good|
|Suarez a ´dream´ player, says Wenger|
|Ribery eyeing treble repeat|
|Paulinho appeal likely|
|Martinez keen for Barkley to stay grounded|
|´Wonderful´ Flanagan hailed by Rodgers|
|Mazzarri slams referee after Napoli loss|
|Anigo unworried by gap to Lille|
|Simeone: Tough to match Barca´s results|
|Neuer eyes Club World Cup title|
|Conte hails ´incredible´ Juventus|
|Hyypia laments missed chances|
|Liga del Futbol Profesional Boliviano Wrap: Title battle still alive|
|Colombia Primera A: Atletico Nacional 2 Deportivo Cali 0 (2-0 agg)|
|Liga MX: America 1 Leon 3 (1-5 agg)|
|Venezuela Primera Division Wrap: Mineros de Guayana win title|
|Uruguay Primera Division Wrap: Danubio crowned champions|
|Argentina Primera Division Wrap: San Lorenzo clinch title|