The Bayern boss has admitted that the Frenchman's foul on Arturo Vidal was over the top, though he added that the Chilean played his part in the incident
The Frenchman caught Vidal on his calf with a late lunge in Tuesday's encounter at the Allianz Arena, but escaped serious punishment as the referee opted against booking him.
Nevertheless, Heynckes was not impressed with Ribery's action and has urged him to curb his aggressive streak.
"What Franck did was completely unnecessary. He should have controlled his temper," Heynckes said at a press conference.
The Bayern boss stressed that Ribery was not the only one who crossed the line, though, as he feels Vidal played his part in the incident as well.
"The way he [Vidal] went in a few times was a bit too much, too. He crossed a line once or twice. But I knew that could happen."
Heynckes worked with Vidal at Bayer Leverkusen from 2009 until 2011.