Lastfm-opensocial is a project mainly written in ..., it's free.
A Last.FM gadget for OpenSocial
This gadget shows the last songs the user heard.