A migrant from Mali lauded as a hero for scaling an apartment building in Paris to save a young child dangling from a balcony will be rewarded for his “exceptional act” with papers to legalise his stay, French president Emmanuel Macron said.

He said 22-year-old Mamoudou Gassama will also be given citizenship if he wants and a job as a firefighter.

“Bravo,” Mr Macron said to Mr Gassama during a one-on-one meeting in a gilded room of the presidential Elysee Palace that ended with the awarding of a medal from the prefecture for “courage and devotion”.

Mr Gassama’s feat went viral on social media, where he has been dubbed “Spiderman” for climbing up five floors, from balcony to balcony, and whisking a four-year-old boy to safety on Saturday night as a crowd screamed at the foot of the building in Paris’ northern 18th district.

The young man said he has papers to legally stay in Italy, where he arrived in Europe after crossing the Mediterranean after a long, rough stay in Libya.

However, he wants to join his older brother, who has lived in France for decades.

Mr Gassama, dressed in blue jeans and white shirt, recounted his experience which took place at around 8pm on Saturday when he and friends saw a young child hanging from a fifth-floor balcony.

Quel courage .. bravo à ce jeune du 18eme pour cet acte héroïque 👏🏼

Posted by Habib Bibou on Saturday, May 26, 2018

“I ran. I crossed the street to save him,” he told Mr Macron during a filmed portion of the meeting.

He said he did not think twice, adding: “When I started to climb, it gave me courage to keep climbing.”

God “helped me” too, he said. “Thank God I saved him.”

Mr Gassama felt fear when he took the child into the apartment.

“I was trembling,” he told Mr Macron.

Mamoudou Gassama displays a certificate of courage and dedication signed by Paris Police Prefect Michel Delpuech as he leaves the presidential Elysee Palace (Thibault Camus, Pool/AP)
Mamoudou Gassama displays a certificate of courage and dedication signed by Paris Police Prefect Michel Delpuech as he leaves the presidential Elysee Palace (Thibault Camus, Pool/AP)

“Because this is an exceptional act… we are obviously, today, going to regularise all your papers,” Mr Macron told him, “and if you wish we will start naturalisation procedures so you can become French.”

Mr Gassama told Mr Macron that he arrived in Italy in 2014 after more than a year in Libya, where he was arrested and beaten, “but I wasn’t discouraged”.

The French president is toughening the nation’s approach to immigration, and stressed that not all who make the treacherous journey to Europe can be welcomed, but that Mr Gassama’s actions were admirable.

“You saved a child. Without you, no one knows what would have become of him,” the president said.

“You need courage and the capability to do that.”

Working as a firefighter corresponds with his skills, Mr Macron said, and opened the door for him to join.

“You have become an example because millions have seen you” on social media, the president said.

The French media reported that the father of the small child was detained for alleged parental neglect.