The phrase "Thanks for the Memories" is famously associated with Bob Hope's catchphrase, but as a song title it first appeared in 1970, recorded by the Swedish pop vocal group The New Seekers. Decades later, Fall Out Boy released a song with the exact same title on their 2005 album From Under the Cork Tree—a completely different composition that borrows the phrase but not the melody or lyrics.
So while Fall Out Boy's track is better known to modern rock audiences, the original "Thanks for the Memories" belongs to the New Seekers' early-'70s pop catalog.