GetSimple Support Forum

Full Version: Facebook Comments in Blog plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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