Both Barcelona's Adama Traore and Western Sydney Wanderers' Adama Traore got on the scoresheet as the Blaugrana saw off the A-Leagues All Stars in a 3-2 friendly win on Wednesday.

Xavi's men beat their hosts at Accor Stadium in front of an engrossed local crowd in New South Wales, as Ansu Fati's strike with 13 minutes to go claimed victory for the visitors.

In just the third-ever A-Leagues All Stars game – and first since 2014 following the format's revival – Dwight Yorke's side fell behind to the Spanish heavyweights just past the half-hour mark.

Ousmane Dembele – potentially playing his final match for Barca – latched on to a throughball before striking a clean left-footed strike into the bottom-right corner to ensure the visitors were ahead at the interval.

But Wellington Phoenix midfielder Reno Piscopo bundled home early in the second half to level matters after Barca were sliced open at the back, and he then teed up Ivory Coast international Traore to take a surprise lead.

Hopes of a shock scalp were dashed though when the latter's namesake – in possibly his last Blaugrana game as well – equalised as the goalkeeper failed to keep out his ferocious drive.

Fati then got the winner five minutes later, providing a cool finish after Antonio Aranda's solo run.