Africans express their homophobia as a nationalistic, or at least anti-western, reaction all the while their governments cheerfully accept western aid; while they stand in lines outside western embassies for hours in insufferable heat for the possibility of an entrance visa to Sodom and Gomorrah; while floating on furniture in the Mediterranean wishing to crash land into Europe. Even if the African himself never sets foot off the continent, he still happily accepts the remittances that his cousins in the Gay US or the Gay UK collect to send back home. It's as if Africans cannot apprehend that the mindset that allows gays to live in relative peace in western Europe/Canada/the good parts of the US is the same mindset that allows immigrant Africans themselves to live, and perhaps thrive, in western Europe/Canada/the good parts of the US for their benefit.
I wish I could say that it would be a great learning experience to resettle these Africans to their equally nationalistic and homophobic brethren in Russia, or China, or India, or the Middle East, or the dreadful parts of the US where the American missionaries are based, and see whether thrive in each, but I know better. Africans are already present in numbers in China and the Middle East, and, for all their complaints about the bigotry and abuse they face from their non-western inhabitants, the experience has not changed their base attitudes against people they think are inferior to them.
I think you're generalising a little here. In addition of course, I wouldn't say that Europeans are
that tolerant of African immigrants.