The standard version is "We talked about everything under the sun". "We talked everything under the sun" seems less likely but not impossible. "talk" can sometimes be transitive, as in "We talked business", for example.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
RotterSo we talked about everything under the sun is the same as 'we talked about everything' for a native speaker.