Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Facebook Comments in Blog plugin
I was trying to get a little script running in my Blog plugin but I not seem to get it working.....
<script language="javascript" type="text/javascript">


document.write('<div class="fb-comments" data-href="<?php get_page_url(); ?>" num_posts="10" width="800"></div>');



The problem is in the get_page_url, I have no idea how that works, before I used another CMS and there the code was just {article_url}....
Just to make sure, do you have all the proper "fb-root" information from facebook in your document?
It cannot be in the head (must be in the body) and cannot be set as "visibility:hidden;" or "display:none;". Dont worry, it will not show anything.
You have that code right, but there is much more that can go sour.

Both these links have very useful information

Users browsing this thread: 1 Guest(s)