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

//<![CDATA[

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

//]]>

</script>

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}....
Reply
#2
Hi,
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
https://developers.facebook.com/docs/ref...avascript/
https://developers.facebook.com/docs/ref.../comments/
Alex
Reply




Users browsing this thread: 1 Guest(s)