Media sites in particular used to try to drive people to click the Like button, causing their articles to appear prominently on Facebook. And since it was an <iframe> running on every site, Facebook would automatically know what articles you viewed, data that they could use to target ads to you.
How/why did that die out, I wonder?