I currently have a facebook sharing button on my website and it works wonderfully for desktops, but from the mobile side of it, it only opens up a new tab in the mobile browser, but I'm looking for it to open the facebook app on the mobile device.
I just have this simple code block doing the current share button.
<div class="fb-share-button" data-href="<?= URL ?>" data-layout="button"></div>
As well as this script at the top.
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.3";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
If anyone can point me in the right direction I'd really appreciate it.