Some of what Facebook Inc. users post to the social network will soon start showing up in ads aimed at their friends.

The company, as part of an effort dubbed "sponsored stories," plans to allow advertisers to buy and re-publish Facebook messages that users voluntarily post about brands—such as a check-in at a local coffee shop or a product on a shopping site for which a user clicks the site's "like" button.

The...