A bumper crowd of more than 57,000 watched Barcelona turn on the style to beat Hearts 3-1 at Murrayfield.
Ronaldinho (right) was on target twice for Barcelona
Ronaldinho tucked away a penalty after Gianluca Zambrotta tumbled but Hearts hit back when Juho Makela poked home a loose ball from close range.
A sweet, flowing move ended with Ronaldinho rising to head past stranded goalkeeper Craig Gordon from six yards.
Thierry Henry later burst clear of the Hearts defence and squared for Giovanni Dos Santos to stroke home the third.
Although played at a leisurely pace, the visitors showed some sparkling touches as they enjoyed almost complete control of the ball.
And former Arsenal striker Henry scorned two fantastic chances from close range.
He hit the junction of post and bar with a fierce shot and somehow headed wide with a diving effort from six yards.
Hearts, who made eleven changes in the game, will no doubt be in more competitive mood when the season opens against Hibs at Tynecastle.
Barcelona coach Frank Rijkaard has enjoyed his visit to Scotland so much he would like to repeat it again next season.
The Catalan club, who were based in St Andrews, flew out of Edinburgh airport straight after the Hearts game which came three days after a 1-0 win over Dundee United at Tannadice.
Rijkaard said: "It has been wonderful and I wouldn't say that if it wasn't true.
"We have been made welcome here and the circumstances have been great for working in.
"You never know what will happen next summer but if it was my decision then I would like to come back here."