At least 50 mothers sat down in a shopping centre's fast food area and breastfed infants for nearly two hours, protesting against the shopping centre forcing a woman to stop nursing her daughter a week earlier.

The action by Lincoln Square in Costa Rica set off a furore on social media and even prompted a statement from the president - a reaction that seemed to shock the shopping centre's management, which quickly apologised for the incident and announced that breastfeeding would be allowed anywhere in the shopping centre.

Despite the retreat, some women decided to go ahead with the "mamaton" protest to show solidarity with Patricia Barrantes, who left the shopping centre the previous weekend rather than comply with a security guard's order to stop nursing her daughter Mariel and move to a special lactation room.

One of the mothers at the rally travelled a hundred miles from Turrialba to the shopping centre in Costa Rica's capital, San Jose.

"It gave me a lot of anger ... like you're doing something dirty, as if it's bad to remove a breast to feed your daughter," she said while holding her 11-month-old daughter Camila.

Similar anger was widespread after reports of what happened to Ms Barrantes. Thousands of angry comments were posted on Twitter and Facebook, mainly by women in Costa Rica and other countries in the region.

Women's and children's groups said the incident set a terrible example in a region where they are trying to encourage more breastfeeding instead of the widespread use of baby formula in order to improve infant health.

Governments in Costa Rica and other Central American nations try to encourage breastfeeding with laws that include mandatory time off during the work day for new mothers to feed their babies or pump breast milk. But women's and children's advocates say rates of breastfeeding remain far too low.

The Costa Rican National Women's Institute sent the mall a formal letter warning that there was no legal justification for barring breastfeeding in public areas.

On Tuesday, President Laura Chinchilla admonished Lincoln Plaza's managers, saying interfering with breastfeeding in public was unjust and stressing that the provision of lactation rooms is only "so that women have an alternative location" to breastfeed if they wish.

The shopping centre backed down later that day.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.