HELSINKI — Facebook’s chief operating officer has apologized to Norwegian Prime Minister Erna Solberg for deleting a photograph from its pages and conceded that “we don’t always get it right.”

Sheryl Sandberg said in a letter that Solberg had raised important issues about Facebook’s decision last month to remove postings of an iconic 1972 image of a naked, screaming girl running from a napalm attack in Vietnam. The image, taken by Associated Press photographer Nick Ut, won a Pulitzer Prize.

On Friday, following protests in Norway and elsewhere, the tech giant reversed its decision and allowed the photo, known as “Terror of War,” to be seen on its pages. Solberg, who said she’d never before had a Facebook post deleted, had reposted the image with a black box covering the girl from the thighs up and other iconic photos of historic events with black boxes covering the protagonists.

Sandberg said that Facebook had “global community standards” to adhere to but that it had learned from the mistake.

“Sometimes, though, the global and historical importance of a photo like “Terror of War” outweighs the importance of keeping nudity off Facebook,” she said in a letter to Solberg dated Sept. 10. “After hearing from you and other members of our community, we have decided to restore the photo.”

Like its Scandinavian neighbors, Norway takes pride in its freedom of speech. It’s also a largely secular nation with relaxed attitudes about nudity.

Several members of the Norwegian government followed Solberg’s lead and posted the photo on their Facebook pages. One of them, Education Minister Torbjorn Roe Isaksen, said it was “an iconic photo, part of our history.”

Sandberg described decisions facing Facebook as “difficult.”

“We don’t always get it right. Even with clear standards, screening millions of posts on a case-by-case basis every week is challenging,” she said. “Nonetheless, we intend to do better … Thank you for helping us get this right.”