The Spanish giants were playing for the first time since the terror attack in the city on Thursday and both teams paid their respects to the victims with a minute’s silence before kick off.
Barcelona took the lead in the game when Alin Tosca deflected Gerard Deulofeu’s cross into his own net.
Sergi Roberto then swept in a second.
It was a much-needed result for Barcelona after a difficult start to their season. Forward Neymar left the club to join Paris St-Germain in the summer before they were beaten 5-1 on aggregate by rivals Real Madrid in the Spanish Super Cup.
Relive Sunday’s European football
Lionel Messi, the focal point of the Barcelona forward line in the absence of Neymar and the injured Luis Suarez, hit the woodwork three times as he pursued his 350th La Liga goal.
But it was former Everton forward Deulofeu who made the difference, providing the assist for Roberto’s goal after his cross had led to the opener.
Nou Camp stands together
There was a defiant attitude among the 56,480 supporters inside the 99,000-capacity stadium after Thursday’s events.
Chants of “we are not afraid” rang out around the Nou Camp after the minute’s silence, while there was a banner in the stands that read “No-one can ever break us”.
Both teams also wore black armbands, while Barcelona’s shirts had the city’s name on the back, rather than the players’ surnames, in tribute to the victims.
For detailed information, click here: Kids Football shirts