The question is pretty self-explanatory; I was just wondering if there was any difference in the way black foreign nationals would have been treated in such segregated societies.
xHi, you may be interested in these threads
What happened when black diplomats went to Rhodesia, South Africa, or Jim Crow United States? - featuring /u/the_alaskan
When segregation was legal in the US, how were prominent black people from Africa (or other non-North American countries) treated on visits to the States? - unfortunately, the top answer has been deleted, but there are a few examples scattered through the thread
I can point out at least one interesting case. Said Qutb while he was living and studying in the US from 1949-1951 was, along with several other Egyptians, denied entry to a movie theater on the basis of being black (I believe this was while he was in Greeley, Colorado). Upon explaining that they weren't African-Americans but were, in fact, Egyptians the theater was willing to admit them, but Qutb refused to enter based on the insult of segregation.
Perhaps ironically Qutb was himself deeply prejudiced, describing Jazz music as fulfilling the sexual urges of blacks, for instance.
Egypt has an interesting relationship with race, particularly in regards to upper Egyptians. Even though their complexion is quite similar, Egyptians bristled at having Louis Gossett Jr. play Anwar Sadat in a film, for instance. That's a bit of a digression from your question though.