Lange, appearing with actor Paul Rudd and “SNL” trouper Jason Sudeikis in the eight-minute segment, described himself as a “well-known homophobic” and mocked Dallas Cowboys quarterback Tony Romo.

“It’s like a white-trash gift from God that the f- – -ing Cowboys have a quarterback whose last name rhymes with homo,” he said — before mocking Romo’s girlfriend, Jessica Simpson, for her recent weight gain.

“F- – – him, f- – – the Cowboys,” he said as Buck tried steering the conversation back on track.

Lange then continued his diatribe on hbo.com after the live show ended.

“He wasn’t who we thought he was,” Greenburg said. “We thought we were going to have an entertaining and kind of comical look at sports and celebrity — but we didn’t expect the guy to hijack the segment for his own personal gain.”

Lange, discussing his appearance on yesterday’s “Howard Stern Show,” said Greenburg told him to “go nuts” if the discussion flagged.

“So go f- – – yourself, I don’t care how important you are in the business,” Lange said to Greenburg.

“That’s regrettable,” Greenburg fired back. “I said to him prior to the show that we need your energy if things get boring.

“He misconstrued that. I didn’t mean that we needed this, which was a far cry from energetic — it was a mean-spirited, vitriolic diatribe with guttural language.”