The standout performer in his nation's triumph at last month's Confederations Cup, Neymar joined up with his new team-mates on Monday and made the trip to Poland to feature in a Barca squad for the first time since joining from Santos.
He replaced Chile forward Alexis Sanchez in the 78th minute, just after World Player of the Year Lionel Messi had been substituted, and was welcomed with a series of robust challenges from the home players.
The Liga champions mostly fielded B-team and youth players, but the likes of Messi and Neymar featured in a match they would have been expected to win comfortably.
The Polish side led twice, with Jaroslaw Bienuk and Piotr Grzelczak strikes sandwiching Sergi Roberto’s goal, but Messi planted a cool finish on 56 minutes to level a second time.
Adam Duda could have won it for Legia at the death but he spurned the chance, and saved Barca an embarrassing defeat.
New coach Gerardo Martino did not make the trip to Poland and will make his debut on the bench when Barca host Neymar's former club in a friendly at the Nou Camp on Friday.
A minute's silence was held before the match in Gdansk after Barca announced earlier on Tuesday that their former goalkeeper Antoni Ramallets had died at the age of 89.
Ramallets made 473 appearances for the Catalan club between 1946 and 1961 and won six La Liga titles and five Spanish Cups.
He was awarded the Zamora trophy for the top goalkeeper in La Liga five times and was part of the Spain squad that finished fourth at the 1950 World Cup in Brazil.
Espanyol were held by Algerian side CS Constantine in a 2-2 draw.
The Spanish club took the lead through Crisitan Stuani with just two minutes on the clock before the hosts levelled from the penalty spot just after the half-time break.
Manu Lanzarote's 78th minute goal looked to have sealed victory for Espanyol but Constantine restored parity for a second time in injury time.
Pierre Emerick Aubameyang and Marvin Ducksch (2) were on the scoresheet as Borussia Dortmund eased to a 3-0 win at Würzburger Kickers while fellow Bundesliga sides Kaiserslautern and Bayer Leverkusen shared a 1-1 draw.
Steven Zellner gave Kaiserslautern the lead on 29 minutes only for Karim Bellarabi to level 12 minutes from time.
European friendly results
Lechia Gdansk 2 - 2 Barcelona
CS Constantine 2-2 Espanyol
Würzburger Kickers 0 - 3 Borussia Dortmund
Kaiserslautern 1 - 1 Bayer Leverkusen
Albacete 1 - 4 Valladolid
Vitoria de Guimaraes 2 - 0 P.Ferreira
Genclerbirligi 2 - 1 Greuther Furth
Konyaspor 0 - 2 MP Antalyaspor
- Sports & Recreation
- Lionel Messi
- Alexis Sanchez