The LaLiga giants went into the game as heavy favourites and delivered a fine performance to run out 5-1 winners.
Messi opened the scoring from the penalty spot as Barcelona boasted five different goalscorers, although they had to cope with the second-half dismissal of Gerard Pique.
The hosts were well on top by the time Messi was fouled inside the box by Adnan Kovacevic, dusting himself off to convert the spot-kick just before the half-hour mark.
The lead was doubled before the interval as Ansu Fati curled home a fine finish from Frenkie De Jong’s pass and Philippe Coutinho’s strike soon after the restart secured the points.
There would be more drama, however, as Pique was sent off after fouling Tokmac Nguen – Igor Kharatin scoring the resulting penalty to give the visitors a glimmer of hope.
Barca were quick to close the door on any Ferencvaros comeback, Pedri sweeping home with eight minutes remaining.
Ousmane Dembele had provided the assist for the fourth and the forward would grab the fifth and final goal himself, finishing well inside the box after Messi’s pass.
After the match, Barcelona revealed a raft of contract extensions for four of their key players.
Goalkeeper Marc-Andre Ter Stegen and experienced centre-back Pique have committed to Barcelona until 2025 and 2024 respectively, after a period of speculation over their futures.
France international defender Clement Lenglet and Holland midfielder De Jong have put pen to paper on new deals running until 2026, as new manager Ronald Koeman looks to build the nucleus of his squad for the next few years.