I don't have Facebook, and I desperately want to get rid of the panel on the right telling me to login. So annoying. Apart from that really enjoy Spotify.
Assuming you’re referring to the ‘See what your friends are playing’ panel; on macOS it’s View Menu -> Uncheck ‘Friend Activity’. The right hand panel should then close.
Edit: You are a champion, that worked!