It's a pretty straightforward transaction: Someone pays Facebook and uses the copious and detailed information that Facebook has gathered about you to stick a targeted message into the "sponsored" message area of your screen when you logintoyouraccount.
This company helps websites like Forbes incorporate social media (so that you can login with your Facebook or Twitter accountto comment and navigate the site).