to get rejected, to be shut out
Ela não me deu bola, eu dei com a cara na porta! Que vergonha!
She didn't flirt back, I got shut out! How embarrassing!
The expression dar com a cara na porta ("to come face to face with the door") works through plain physical imagery: you arrive somewhere expecting to be let in, only to meet a shut door instead of the person or place you were after.
Falando's Idiom Trainer teaches you to recognize idiom meanings and create sentences using them, so you can speak like a Brazilian.