Publicize to Facebook is a bit different, since Facebook uses multiple data sources to build its post previews:
- Data sent by WordPress.com servers to the WordPress.com Facebook app
- Open Graph Meta tags inserted into your posts by Jetpack or another Open Graph plugin
It’s consequently going to be a bit more difficult to customize the URL. But if you use Jetpack’s Open Graph meta tags, you could create to define a custom URL there, like so:
function fb_cpt_single_og( $tags ) {
if ( is_singular('your-cpt') ) {
// Remove the url meta tag added by Jetpack
unset( $tags['og:url'] );
// Get the URL you want to share instead
$fb_cpt_single = XX;
$tags['og:url'] = esc_url( $fb_cpt_single );
}
return $tags;
}
add_filter( 'jetpack_open_graph_tags', 'fb_cpt_single_og' );
Of course you’ll need to replace xx
by the function you created to build your customized URL.
I hope this helps.