Credit: George Pimentel/

Hours after announcing that he and girlfriend of five years Jenny McCarthy have split, Jim Carrey thanked his fans for all their support.

"I appreciate your well wishes today!" he Twittered Tuesday. "All of you folks together make One Mighty Heart!"

Carrey fans immediately reached out to the actor, 48, after Tuesday's shocking split announcement. "don't soffocate [sic] your feelings, cry if u need it," one fan wrote to him.

Celeb blogger Perez Hilton consoled McCarthy, 37, telling her that despite their breakup, "5 years is longer than a lot of Hollywood marriages ... Stay positive!"

Earlier in the day, McCarthy Twittered that she is "so grateful" for the years she spent with Carrey. During their time together, they celebrated Carrey becoming a grandfather for the first time.

"I will continue to be in his daughter's life and will always keep Jim as a leading man in my heart," she Twittered.