crowdfavorite/wp-social — pull request #155 by jondavidjohn (2013-06-25 17:08:46+00:00)
Title: add filter to manually override facebook broadcast link

This simply adds a filter to allow overriding of the facebook broadcast link.

The specific instance I've found it useful is for "link" post formats. I generally want to post the link I'm wanting to share, not the post about the link I want to share. Accomplishing it like this, with this patch.

```php
function social_fb_link($url, $post) {
if (get_post_format($post->ID) == 'link'
&& ($link = get_post_meta($post->ID, '_format_link_url', true))) {
return $link;
}
return $url;
}
add_filter('social_facebook_broadcast_link', 'social_fb_link', 10, 2);
```