Friday, 15 February 2013

facebook - Like Box works for users logged into FB - but not otherwise -



facebook - Like Box works for users logged into FB - but not otherwise -

i have weird problem cannot fb box show in chrome, chrome incognito / firefox / opera doesn't render @ all. shows fine if log in facebook first.

inside <head>:

<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/all.js#xfbml=1&appid=409074972499544"; fjs.parentnode.insertbefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script>

after opening tag of <body>

<div id="fb-root"></div>

located @ want box rendered at:

<div style="padding-bottom: 10px;"><fb:like-box href="https://www.facebook.com/leagueoflegendsfinland" width="250" show_faces="false" colorscheme="dark" stream="false" header="false"></fb:like-box></div>

my fb app:

so experienced dev there point out mistake? :) tried html5/iframe versions it's same deal. tried moving code right before body closes.

oh, if wants straight go inspect page: http://leagueoflegends.fi

check page dat if there restrictions.it happens because of restrictions made. age restrictions,country that. remove restrictions,it works fine. utilize iframe fb box or javascript.it wrks fine.

facebook

No comments:

Post a Comment