I am trying to build a profile box for my fbml facebook app. When this code is executed the only thing that is rendered is the provided url, while what should happen is that it uses the content of that url. i think it has something to do with the refreshRefUrl call as it is returning error 1: unknown error.
$user = $this->facebook->require_login();
$url ='http://facebook.connectroots.net/index.php/welcome/widget';
$this->facebook->api_client >fbml_refreshRefUrl("http://facebook.connectroots.net/index.php/welcome/widget");
$this->facebook->api_client->call_method('facebook.Fbml.setRefHandle',
array(
'handle' => 'bla_n',
'fbml' => $url
)
);
$this->facebook->api_client->call_method('facebook.profile.setFBML',
array(
'uid' => $user,
'profile' => '<fb:narrow><fb:ref handle="bla_n"></fb:narrow>',
'profile_main' => '<fb:ref handle = "bla_n" />'
)
);
$this->load->view('canvas.php');