AS i previously stated above. It takes the url of the current page automatically. We don’t have any control in that code at all. However, you can write custom share url. Here is how to do that.
<a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=<?php the_permalink(); ?>" class="fb">Facebook</a>