facebook/wordpress — pull request #401 by niallkennedy (2013-02-20 18:20:06+00:00)
Title: Post to feed by default. Offer OG action opt-in

Setting up an Open Graph action - object pair with action permissions is a frustrating barrier to entry for webmasters. The approved action provides better news feed visibility and content highlighting than the generic feed endpoint yet it's beneficial for the plugin to have some basic functionality without much configuration. This pull request introduces an opt-in checkbox on the Social Publisher settings page to enable publishing to Facebook using the Open Graph news.publishes action and its additional properties.

Mentions tagging is not available without the Open Graph action and approved properties; the CSS and JavaScript in the post editor are removed if Open Graph action is not enabled.

This pull request moves the publish to Facebook functionality from the `transition_post_status` action to the `wp_insert_post` action at the end of the insert / update process, allowing our post meta save functionality in the `save_post` action to complete and other actors on the content about to become public.