Having seen the OP post before, her boyfriend is Nigerian.
Nigerians are not racist per se...they're not crazy about their kids marrying Ghanaians, Jamaicans, Kenyans, etc. either. It's a cultural thing, simple as.
Frankly the reason I haven't dated black guys in quite a long time is that the ones my age will happily date white girls, break their hearts, and then at the age of 28 or so expect all of us nice Nigerian girls to be waiting to marry them with open arms.
It's bad behavior and I'm sorry you got caught up in it. But just be aware of the reality; many African guys talk about white girls like they are objects and playthings. Hopefully in another generation this nonsense will stop.