Definitely use the plugin. The program is bloated, slow, buggy from what I've read.
You can get the plugin from their website under downloads, foobar2000 plugin. Just run the .exe which basically places the .dll file in the components directory, then go to preferences and enter your last.fm username and password.