Facebook Like Box plug-in not working on web page test

galindbergh picture galindbergh · Feb 21, 2013 · Viewed 20.1k times · Source

I have just copied & pasted code from https://developers.facebook.com/docs/reference/plugins/like-box/

Here's a test page: http://net-gal.com/fbTest.html

I have viewed the page in Mac/Firefox & Safari plus pc/IE, and the plug-in puts lots of blank space but no Facebook feed.

How can I make my Facebook feed appear on the page?

under body tag:

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

in page to display:

<div class="fb-like-box" data-href="http://www.facebook.com/ginger.lindbergh" data-width="292" data-show-faces="true" data-stream="true" data-header="true"></div>

I added another test page that works using facebook developers page ID. See test page: net-gal.com/fbTest2.html

The code was changed to: data-href="http://www.facebook.com/platform"

So it appears the plug-in is working but not the link to my facebook page. Is it my facebook security settings? I checked & they seem fine. I also replaced my text link with my numeric id link and results were the same; there was no feed. I added a new status update to my page but that didn't change it either. But I have eliminated the actual plug-in; it does work.

I am at a loss; can anyone help by telling me what I need to do to get this code to pull up my facebook like box?

Answer

JosephusPaye picture JosephusPaye · Feb 21, 2013

I think the problem is with the code generator. I also faced the same problem. This was what I did to solve it:

Change the following line:

js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";

To:

js.src = "http://connect.facebook.net/en_US/all.js#xfbml=1";