See an exclusive photo of James Franco helping a female fan get back at her ex-boyfriend. A source tells Us, "He said, 'Post it on Facebook and tell him to eat his heart out!'"

Is there anything James Franco can't do? During an Oct. 7 photo shoot at a private Beverly Hills home, the actor-writer-director-professor became a heartbreak hero.

Greta Pasqua, 15, whose dad owns the residence, "was really depressed because her boyfriend had just broken up with her," a source exclusively reveals in the new issue of Us Weekly. "James caught wind of it and gave her a pep talk."

The star, 35, even helped Pasqua exact some sweet revenge. After learning the girl's ex is Franco-obsessed, the source tells Us, he took a huggy photo with her. "He said, 'Post it on Facebook and tell him to eat his heart out!'" 

The plan worked. Says the source, "Her ex is all of a sudden starting to think he made the wrong decision!"

As for Franco's love life, the This is the End star is currently on the market after splitting from girlfriend Ahna O'Reilly in 2011 after five years of dating. In October 2012, he denied rumors that he was dating Twilight actress Kristen Stewart and Spring Breakers costars Ashley Benson and Selena Gomez. In a blog post for the Huffington Post, he claimed he never asked Stewart out on a date and added, "As for Gomez and Benson, those are [Justin's] Bieber's girls and I wouldn't dare tangle with the Biebs."