Elsewhere Liverpool pulled Standard Liege, which has just struck a formal partnership with Real Madrid, out of the bag, while Rangers will face either Aalborg or Modrica if they manage to overcome IFK Kaunas in the second round.

The third-round first-leg games will take place on 12/13 August, with the return matches on 26/27 August.

The full draw is as follows:

Anorthosis Famugusta (Cyprus) or Rapid Vienna (Austria) v Olympiakos Piraeus (Greece)
VitoriaGuimaraes (Portugal) v IFK Gothenburg (Sweden) or Basel (Switzerland)
Shakhtar Donetsk (Ukraine) v Domzale (Slovenia) or Dinamo Zagreb (Croatia)
Schalke 04 (Germany) v Atletico Madrid (Spain)
AaB Aalborg (Denmark) or Modrica (Bosnia) v Rangers (Scotland) or Kaunas (Lithuania)
Barcelona (Spain) v Beitar Jerusalem (Israel) or Wisla Krakow (Poland)
Levski Sofia (Bulgaria) v Anderlecht (Belgium) or BATE Borisov (Belarus)
Standard Liege (Belgium) v Liverpool (England)
FC Baku (Azerbaijan) or Partizan Belgrade (Serbia) v Fenerbahce (Turkey) or MTK Hungaria (Hungary)
Twente Enschede (Netherlands) v Arsenal (England)
Spartak Moscow (Russia) v Drogheda United (Ireland) or Dynamo Kiev (Ukraine)
Juventus (Italy) v Tampere United (Finland) or Artmedia Bratislava (Slovakia)
Brann Bergen (Norway) or Ventspils (Latvia) v Olympique Marseille (France)
Fiorentina (Italy) v Slavia Prague (Czech Republic)
Galatasaray (Turkey) v Steaua Bucharest (Romania)
Panathinaikos (Greece) or Dinamo Tbilisi (Georgia) v Sheriff (Moldova) or Sparta Prague (Czech Republic)