James Franco helped a teen get over heartbreak and gave her the ultimate way to get revenge against her ex-boyfriend.

The actor was at a private Beverly Hills home on Oct. 7 for a photo shoot. Greta Pasqua, 15, whose dad owns the residence, "was really depressed because her boyfriend had just broken up with her," a source told the new issue of Us Weekly. "James caught wind of it and gave her a pep talk."

After learning the girl's ex-boyfriend is Franco-obsessed, the source told the magazine, the 35-year-old took photo with her in which he hugs Pasqua with both arms while staring into the camera lens. Pasqua is shown holding Franco and sporting a huge smile on her face.

"He said, 'Post it on Facebook and tell him to eat his heart out!' " 

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

See the photo here.

Bon Jovi Walks Fan Down the Aisle at Las Vegas Wedding, PHOTO

As for Franco's own love life, the This is the End star is currently single after splitting from girlfriend Ahna O'Reilly in 2011 after five years of dating. In October 2012, he denied rumors that he was dating his Spring Breakers co- stars Ashley Benson and Selena Gomez. In a blog post for The Huffington Post, he also claimed he never asked Twilight's Kristen 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."

Franco was recently revealed to be Britney Spears' No. 1 choice for the role of Christian Grey in the film adaptation of Fifty Shades of Grey, after Charlie Hunnam dropped out of the role. The pop singer spoke to KIIS-FM UK radio on Wednesday about who she fancies for the role, saying about the Lovelace actor, "I love James Franco. I think he's really cool."

"I had a dream about him last night. But no, it wasn't that kind of dream. We were just talking, having a conversation. I wish it was like that!" Spears admitted. 

Tags: James Franco