if someone rubs it in, they keep talking about something that makes you feel embarrassed or upset. I know I made a mistake, but you don't have to rub it in.
Whenever he won money from a bet with others, he would always rub their noses in it by saying, "Thanks for the donation, suckers." (this being an example of how to rub someone's nose in it)