mercredi 25 février 2015

Facebook LiKE function not working

I'm in Germany now, I asked a friend here to LIKE my personal site (jamiestclair.com) hosted in the US, and I watched him attempt to do it and fail. He was logged into FB, the LIKE button showed up fine on my homepage, but when he clicked it, it opened a new window in his browser (Exp. 8) and that window never filled w. any content, just remained empty. End of story. I noticed he was logged into the German FB - http://ift.tt/1lvtLCJ. I wouldn't have thought that would be an obstacle for him to like my site. The header code and button code are included here:



<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.0";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>


LIKE button code:



<div class="fb-like fbmedia" data-href="http://jamiestclair.com" data-layout="button_count" data-action="like" data-show-faces="false" data-share="true"></div>

Aucun commentaire:

Enregistrer un commentaire