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'
|Portugal appoint Fernando Santos|
|Candreva extends Lazio contract|
|Gray plots City downfall after scouting mission|
|O´Neill opts for consistency with Germany on horizon|
|Davies confident of another Hull City cup run|
|Pardew: Time running out for Ameobi|
|Behrami: Teamwork key for Hamburg|
|Magath hits back at ´laughable´ Hangeland|
|Bravo ´not surprised´ by perfect start|
|Mourinho urges Chelsea to control emotions|
|Van Persie hit hardest by Ferguson retirement|
|Martino offers Tevez hope|
|Kompany: Lampard goal could be crucial|
|Not celebrating against old clubs is ´nonsense´ - McCarthy|
|Nuno lauds Valencia players|
|´No concerns´ over Gerrard form - Rodgers|
|Olsen signs contract extension with DC|
|Argentine Primera Division Review: River Plate win again|
|Hamann urges Liverpool to change style|
|Rooney ´not spectacular´ as striker - Van Gaal|
|Spahic to make sensational international return|
|Uruguayan Primera Division Review: Top trio post wins|
|Tevez misses out again as Messi returns|
|Almeria v Atletico Madrid: Gabi issues rallying cry|
|Kouyate out for up to six weeks|
|Barca monitoring Neymar and Rakitic|
|Onazi extends Lazio deal|
|Turkish Super Lig Review: Akhisar Belediyespor continue strong start|
|Academica 2 Estoril 2: Kuca at the double to deny 10-man hosts|
|Wigan Athletic 1 Ipswich Town 2: McCarthy´s men win again|
|Getafe 0 Valencia 3: Visitors go second with comfortable win|
|Juventus v Cesena: Hosts out to maintain perfect record|
|Inter v Atalanta: Mazzarri looking for reaction|
|Borussia Dortmund v Stuttgart: Injury-hit hosts seek swift response|
|West Brom v Hull City: Irvine looking for more of the same in League Cup|
|Russian Premier League Review: CSKA, Dinamo win Moscow derbies|
|Chelsea v Bolton Wanderers: History stacked against the visitors|
|La Liga Preview: Elche set for Real test, Barca head to Levante|
|Rodgers looking for Anfield improvement|
|Pallotta: Strootman is not for sale|
|Zwanziger: 2022 World Cup will not be held in Qatar|
|Caen v Paris Saint-Germain: Blanc out to lift PSG gloom in Normandy|
|Watford boss Garcia released from hospital|
|Inzaghi confident Milan squad can cope with hectic schedule|
|Japan dominate the pool in Incheon|
|Sakho looking to develop Valencia partnership|
|Crystal Palace v Newcastle United: Pardew seeks respite with win at former club|
|Manchester City v Sheffield Wednesday: Gray out to shock City|
|Bowen optimistic away form can continue|
|Tottenham v Nottingham Forest: Kaboul eyes League Cup glory|
|Marotta praises Allegri start|
|League Cup Preview: Sheffield Wednesday, Middlesbrough relish big trips|
|Debuchy out for three months|
|Benteke nearing Villa return|
|Serie A Preview: Roma and Juventus out to maintain perfect starts|
|J.League Preview: Urawa out to consolidate lead|
|Ozil: I have nothing to prove|
|Ribery still on the sidelines for Paderborn clash|
|Malaga v Barcelona: Leaders sweat on Neymar fitness|
|Ancelotti calls for Real unity|
|Anything is possible under Garcia - Gervinho|
|Agger: Rodgers discord led to Liverpool departure|
|Bundesliga Preview: Shock leaders face Bayern test, Stuttgart visit Dortmund|
|Rakitic concentrating on Barca not rivals|
|Rodwell pleased with fitness progress|
|Ligue 1 Preview: Blanc eyes killer instinct|
|PSG must work harder - Ibrahimovic|
|Stoke have held Crouch talks, says Hughes|
|Sanchez confident Hernandez will thrive in Madrid|
|Wasted chances cost Chelsea - Mourinho|
|Pellegrini hails City´s best performance|
|Schneiderlin out to avoid December struggles|
|Pearson buoyed by form of Leicester front three|
|Van Gaal running out of defensive options|
|Champions League no excuse - Sterling|
|Copa Sudamericana Preview: Cerro confident after big win|
|Gentiletti out for six months|
|CONCACAF Champions League Preview: Portland primed for top spot|
|Colombian Primera A Review: Cali rise to the summit|
|Neville slams ´soft-centred´ United|
|Liga del Futbol Profesional Boliviano Review: San Jose go top|
|Ecuadorian Primera A Review: Barcelona move clear|
|Liga MX Review: Ronaldinho scores on league debut|
|Costa Rican Primera Division Review: Nunez fires again for Herediano|
|Paraguayan Division Profesional Review: Sol de America end streak|
|Serie A no two-horse race - Garcia|
|Venezuelan Primera Division Review: Tachira thrash Tucanes|
|Brazilian Serie A Review: Cruzeiro stunned late, Goias crush Palmeiras|
|Peruvian Primera Division Review: Melgar, Cesar Vallejo win again|
|Toronto FC 3 Chivas USA 0: Hosts end winless run|
|Ligue 1 Review: Pressure builds on Blanc, Monaco edge to victory|
|Al-Khelaifi gives Blanc vote of confidence|
|Mazzarri frustrated by draw|
|Luis Enrique salutes ´special´ Messi|
|Iachini laments missed chances|
|La Liga Review: Barca hammer Levante, Villarreal in two-goal comeback|
|Serie A Review: Zeman denied Roma revenge, Inter held|
|Paris Saint-Germain 1 Lyon 1: Umtiti adds to pressure on Blanc|
|Levante 0 Barcelona 5: Five-star Barca crush 10-man hosts|
|Palermo 1 Inter 1: Visitors´ progress checked|
|Arsenal v Southampton: Koeman calls for focus|
|Swansea City v Everton: Both sides looking to bounce back in League Cup|
|Police to investigate after Balotelli abused on Twitter|
|Liverpool v Middlesbrough: Rodgers keen to regain winning habit|
|Arabian Gulf League Review: Al Wahda maintain perfect start, Al Jazira held|
|Real Madrid v Elche: Hosts look to build on Depor demolition|
|Eredivisie Review: Ajax triumph in derby, PSV romp to victory|
|Warnock proud after victory at Goodison|
|Mourinho not interested in Pellegrini jibes|
|Pellegrini slams ´small team´ Chelsea´s approach|
|Bundesliga Review: Leverkusen slip up, Cologne held in derby|
|Martinez rues failure to build on strong start|
|Sewe Sport 1 AC Leopards 0: Kouame strike seals slender advantage|
|Scottish Premiership Review: Derby joy for Dundee United, Celtic held|
|Vita Club 2 CS Sfaxien 1: Hosts seize advantage in semi-final|
|Mixed emotions for Lampard after denying Chelsea|
|Irvine hails best day so far|
|Manchester City 1 Chelsea 1: Lampard denies former club|
|Everton 2 Crystal Palace 3: Howard mistakes cost hosts dear|
|Pearson praises Leicester City spirit|
|Van Gaal laments United collapse|
|Pochettino makes no excuses|
|CSL Review: Evergrande leave it late, Liaoning Whowin edge thriller|
|Leicester City 5 Manchester United 3: Hosts stage famous comeback|
|Tottenham 0 West Brom 1: Morrison gives visitors deserved win|
|Lee claims first Hong Kong gold in Incheon|
|Sunderland v Stoke City: Poyet again up for the cup|
|Ancelotti wants Real consistency|
|Dortmund hit by Mkhitaryan injury blow|
|Inzaghi pleased with Milan progress|
|Monk: Hodgson will be back|
|Pardew: Cisse should not have played|
|We cannot entertain title challenge - Rodgers|
|Bayern Munich v Paderborn: Visitors´ surprise start faces litmus test|
|K. League Review: Suwon close gap on top two|
|Empoli v Milan: Inzaghi eyeing top three|
|MLS Review: Wright-Phillips treble inspires Red Bulls rout|
|Bender: We lacked ambition|
|McInnes unhappy after ugly bust-up|
|Cambiasso impressed with Leicester mentality|
|Valverde: Champions League is not an excuse|
|Simeone wants improvement in discipline|
|Conte keeping tabs on Pelle|
|Marseille deserved to beat Rennes - Bielsa|
|La Liga Review: Real end slump with rout, Atletico share spoils|
|Hart unsure on City future|
|Primeira Liga Review: Quinta inspires first Penafiel win, Braga claim late draw|
|ES Setif 2 TP Mazembe 1: Late winner gives Algerians the edge|
|Inzaghi upbeat despite defeat|