The French star was replaced by Thomas Muller after 71 minutes as he was unable to impress in the second half after being heavily involved in Bayern's attack during the first session.
As he left the pitch, Ribery walked past coach Jupp Heynckes without shaking his hand, and Hoeness was asked if there was any sort of tension between the two.
"Just stop with your f***ing handshake questions," he told Sky Sport HD. "You just keep talking about that handshake, for f*** sake!
"Who wants to shake hands after such a match?! Are we at a boarding school for girls here or what?"
Questioned about the disappointing result in Switzerland, Hoeness criticised the poor state of the pitch at the St. Jakob-Park.
"It was difficult to play on that pitch," he said.
How do you stay up with football when on the move? With http://m.goal.com – your best source for mobile coverage of the beautiful game.