Ugandan President Yoweri Museveni has thanked President Trump for speaking "frankly" about the African continent, calling him one of the best American presidents in history, after Trump allegedly described Haiti and African nations as "shithole countries."

"Donald Trump speaks to Africans frankly. Africans need to solve their problems," Museveni wrote on Twitter Tuesday in a series of tweets advocating for African integration.

"It is the Africans' fault that they are weak. We are12 times the size of India, but why are we not strong?" he continued.

Earlier, in a Tuesday address before the East African Legislative Assembly, Museveni said he was not sure whether Trump was "misquoted or whatever," but regardless he approved of the language.

"America has got one of the best presidents ever, Mr. Trump," Museveni said to the body, which comprises representatives from Uganda, Kenya, Tanzania, Burundi, Rwanda, and South Sudan, in the Ugandan capital of Kampala.

"I love Trump because he speaks to Africans frankly. He talks about Africans' weaknesses frankly," Museveni added, according to AFP.

Trump has denied using the phrase "shithole countries" in a bipartisan White House meeting with senators to discuss immigration reform.

The lawmakers present have offered conflicting accounts of the conversation.

The reference, however, sparked angry responses on Capitol Hill, as well as from African leadership.

The 55-member African Union, for example, issued a scathing statement, demanding Trump apologize for the remark.

“The African Union Mission wishes to express its infuriation, disappointment and outrage over the unfortunate comment made by Mr. Donald Trump, President of the United States of America,” the group said in a statement.

Museveni has been president of Uganda since 1986.

The 73-year-old leader was part of the controversial 2005 constitutional amendment that dispensed with presidential term limits.