[eluser]Unknown[/eluser]
Hi all,
I am trying to develop facebook comments application in my codeignitor project but i face problem like loading comment box and also not display all comment properly and when i use another fresh application codeigniter that work good.
I use this code in view file
[removed](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=123456789123456";
fjs[removed].insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
[removed]
<div class="fb-comments" data-href="http://test.xyz.com:8080" data-num-posts="100" numposts="10" data-width="800"></div>
I use this code in controllers file
<?php
class Fb_comments extends CI_Controller
{
function __construct()
{
parent::__construct();
}
function index()
{
$this->load->view('fb_comments');
}
}