Oscar nominee Ellen Page (“Juno”) has accused disgraced filmmaker Brett Ratner of homophobic behavior toward her on the set of 2006’s “X-Men: The Last Stand,” outing her to the rest of the cast and crew.

Page, in an essay posted Friday on her Facebook page, also said she was ashamed of working with alleged sexual predator Woody Allen on his 2012 movie “To Rome With Love.”

According to Page, Ratner made the slur about her to another actress during the first day of filming on “X-Men: The Last Stand,” in which Page was starring as Kitty Pryde.

“‘You should f— her to make her realize she’s gay.’ He said this about me during a cast and crew ‘meet and greet’ before we began filming, ‘X Men: The Last Stand.’ I was eighteen years old. He looked at a woman standing next to me, ten years my senior, pointed to me and said: ‘You should fuck her to make her realize she’s gay.’ He was the film’s director, Brett Ratner.”