James Franco has never been a regular soap opera cast member.
He guest-starred as a fictionalized version of himself on General Hospital (2010) (arc: "Franco" the artist/serial killer). He also appeared in the web spin-off General Hospital: Night Shift (2010).
These were stunt-casting events; his primary career is film/TV drama/comedy (127 Hours, The Disaster Artist, Freaks and Geeks).