50 Shades is decidedly not a fanfic for the exact reason that it couldn't be sold as one.
“The Fifty Shades trilogy was developed from a Twilight fan fiction series originally titled Master of the Universe and published by [E. L.] James episodically on fan fiction websites under the pen name ‘Snowqueen Icedragon’.”