Facebook share button on blog feed
-
<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_GB/sdk.js#xfbml=1&version=v2.0"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <div class="fb-share-button" data-href="https://google.com/" data-type="icon"></div>
Hi,
The above code is what I have at the moment. I’m trying to get it so when you are on the home blog feed (index.php), you can share an individual blog post without having to go on to it (single.php). Is this possible with facebook sharing? I’ve got it to work with twitter, pinterest and linked in but facebook is proving to be a problem.
Much appreciated.
- The topic ‘Facebook share button on blog feed’ is closed to new replies.