to chat, to shoot the breeze
Não tinha nada para fazer, fiquei batendo papo com a Rita.
I had nothing to do, I was chatting with Rita.
In bater papo the word papo comes from the Latin papare, "to eat" — the same root that gave papar. It first named the pouch at the base of a bird's throat, then the throat itself, and from there drifted to mean "talk."
Source: Origem da Palavra.
Falando's Idiom Trainer teaches you to recognize idiom meanings and create sentences using them, so you can speak like a Brazilian.