If you struggle to get the correct url for your share button here is a fix.
I assume here you know how to get the button up and running if you dont please just go to https://developers.facebook.com/docs/plugins/share-button and follow instructions
We need to just make function calling the correct url when clicking share so go to your functions.php file and add this code:
function myblog_post_by_slug($the_slug, $post_type = "page"){ $args = array( 'name' => $the_slug, 'post_type' => $post_type, 'post_status' => 'publish', 'numberposts' => 1 ); $my_page = get_posts($args)[0]; return $my_page; }
This function will help get the slug of your current post now all you need to do is change the data-href(you get this in step 3 on facbebook developers) to this:
data-href="<?php echo myblog_post_by_slug('map'); ?>"