I'm currently using WB11. I have both a standard site and a mobile version of the same site. I'm adding FaceBook share buttons to both but am having a problem with the mobile site. I added the codes that faceBook provided and it work great on the main site but the button won't render on the mobile site. What am I doing wrong?
Main site www.carbonscopetubes.com The share button renders and works fine.
Mobile site m.carbonscopetubes.com No share button, just a text link, but the link does work.
This is the code generated by the FaceBook Share Button Generator for my mobile site:
This code is placed after the < body> tag...
Code: Select all
<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 = 'https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.10';
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
And this is supposed to render the button and counter...
Code: Select all
<div class="fb-share-button" data-href="http://www.carbonscopetubes.com/" data-layout="button_count" data-size="large" data-mobile-iframe="true"><a class="fb-xfbml-parse-ignore" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fwww.carbonscopetubes.com%2F&src=sdkpreparse">Share on FaceBook!</a></div>