African nations have reacted angrily after Donald Trump reportedly referred to them as "s***hole countries", with many accusing the US president of racism and ignorance.
The 55-nation African Union condemned the remarks on Friday, while a statement from ambassadors of all countries from the continent at the United Nations demanded a retraction and apology.
The African Group of UN ambassadors said it was "extremely appalled at, and strongly condemns the outrageous, racist and xenophobic remarks by the president of the United States of America as widely reported by the media".
Ambassadors unanimously agreed the resolution after an emergency session to discuss Mr Trump's remarks.
The comment was "clearly" racist, said Ebba Kalondo, spokeswoman for AU chief Moussa Faki.
"This is even more hurtful given the historical reality of just how many Africans arrived in the United States as slaves, and also terribly surprising as the United States remains a massively positive example as just how migration can give birth to a nation," Ms Kalondo said.
She stressed that the US was "much stronger than the sum total of one man".
______________
Read more:
Trump waxwork amuses residents in ‘off location’ of new US embassy
Trump approves Iran nuclear deal 'one last time' and imposes sanctions on 14 entities
Trump cancels UK visit over ‘bad deal’ embassy move
______________
Mr Trump reportedly demanded to know why the United States should accept immigrants from "s***hole countries", after lawmakers raised the issue of protections for immigrants from African nations, Haiti and El Salvador.
He later tweeted, "this was not the language used" but privately defended his remarks, according to a source who spoke to Associated Press.
Mr Trump said on Friday that he was only expressing what many people think but won't say about immigrants from economically depressed countries, said the source.
The president spent Thursday evening making a flurry of calls to friends and outside advisers to judge their reaction to the tempest. The confidant told AP that Mr Trump wasn't apologetic about his inflammatory remarks and denied he was racist, instead blaming the media for distorting his meaning.
The United Nations has meanwhile slammed the reported remarks as "shocking and shameful" and "racist".
"You cannot dismiss entire countries and continents as 's***holes' whose entire populations, who are not white, are therefore not welcome," said Rupert Colville, spokesman for the UN human rights office.
Botswana summoned the US ambassador to the country to "clarify if Botswana is regarded as a 's***hole' country", according to a foreign ministry statement calling Mr Trump's comments "irresponsible, reprehensible and racist".
Senegal followed suit with foreign minister Sidiki Kaba saying the government "firmly condemned the unacceptable remarks which undermine human dignity, especially of Africa and her diaspora".
Mr Trump was widely derided last year after twice referring to Namibia as "Nambia".
Social media users across the continent posted images of modern skylines and beautiful nature from their countries with the hashtag "s***hole".
Many Africans reminded the US of its historic role in the continent's woes.
"President Trump, One day, I'll take you to a 's***hole' country called Ghana," wrote Ghanaian Edmond Prime Sarpong on Facebook.
"First stop would be Osu Castle, Elmina Castle, and the over 40 Forts that detained about 30 million slaves, beaten and shipped out like sardine cans and then I will tell you the history of Africa and why people like you made that a 's***hole' continent."
Prominent Kenyan commentator Patrick Gathara said Mr Trump's words were nothing new.
"This is no different from what Hollywood and Western media have been saying about Africa for decades. We have consistently been portrayed as shitty people from shitty countries."
Some acknowledged problems in their countries, but blamed this on their poor leaders as well as western nations.
"Please don't confuse the #s***hole leaders we Africans elect with our beautiful continent … Our motherland is the most blessed continent that has been raped by imperialists in collaboration with our s***ty misleaders for generations," wrote Kenyan activist Boniface Mwangi on Twitter.
In South Africa, the ruling African National Congress party declared "ours is not a s***hole country" and described Mr Trump as "extremely offensive".
Even war-torn South Sudan weighed in, with president Salva Kiir's spokesman, Ateny Wek Ateny, slamming the comments as "outrageous".
But Juba businesswoman Jenny Jore, 31, said Mr Trump's remarks were "on point".
"It is thanks to our African leaders that we are insulted that way," she said.
Many Nigerians on Twitter agreed that their country was a "s***hole", but said it was "our s***hole" to criticise.
In Senegal's capital, Dakar, meanwhile, administrator Idrissa Fall said "we cannot really say that he (Mr Trump) is wrong".
"African countries, and sometimes our leaders, do not exactly deal with the problems of the worst-off, that's what makes people immigrate".
The 54-nation UN African Group, which does not include Western Sahara, demanded a "retraction and an apology" from Mr Trump, while thanking Americans "from all walks of life who have condemned the remarks".
Mr Trump's latest comments provided ample fodder for talk-show hosts.
South African comedian Trevor Noah, star of America's The Daily Show, described himself as an offended citizen of "South Shithole" and also criticised Mr Trump's preferred choice of Norway for immigrants.
"He didn't just name a white country, he named the whitest — so white they wear moon-screen," he said.