Africans fleeing the war in Ukraine said they faced racism and discrimination at the border between Poland and Ukraine.
Some Africans said officials rudely stopped them from crossing the border for days despite cold, lack of food and other supplies, while letting European and American refugees enter the country.
Social media users were outraged by videos circulating online, with one showing a Ukrainian border guard vehicle.
Thousands of young African students mostly from Nigeria, Ghana, Kenya, South Africa, Ethiopia, Somalia and other countries study in Ukraine due to its high standard of education and low costs.
Foreign minister Geoffrey Onyeama called on his Ukrainian counterpart to clarify the situation.
Mr Onyeama expressed concern at the news of Ukrainian border guards hindering the exit of Nigerians and promised to investigate the matter quickly.
Ukrainian foreign minister Dmytro Kuleba asserted that Ukrainian border guards had been instructed to allow all foreigners to leave.
South African students and other Africans were badly treated at the border between Ukraine and Poland, South African foreign minister Clayson Monyela, tweeted on Sunday.
However, Ghanaian foreign minister, Shirley Ayorkor Botchwey said students from Ghana had not had any problems leaving the country, in a statement released on Monday.
She said 38 of the 220 Ghanaians who had left Ukraine so far had crossed the Polish border without any problems.
“However, more than 460 people are still on their way out of Ukraine to neighbouring countries,” she added.
On Monday, Polish officials denied the accusations and a spokesperson called the social media reports “nonsense” in response to dpa’s query.