[eluser]yonel[/eluser]
hello everybody
i use codeigniter to build my facebook application.
But i have a problem with invitation et authorizing application.
When people accept my application, he is redirected to a blank page.
The application is succesfully installed but we can't see anything,only a blank page.
I posted a topic on facebook forum but no response!!!
My url to application and my facebook are configured like junal's blog exemple.
extract of my controler
Code:
class game extends Controller {
private $facebook;
//API and secret key that you got from your application setup.
private $__fbApiKey = 'apikey';
private $__fbSecret = 'secretkey';
public function __construct()
{
parent::__construct();
//load the client library that we added as plugin in plugins folder.
$this->load->plugin('facebook');
$this->load->database();
// Prevent the 'Undefined index: facebook_config' notice from being thrown.
$GLOBALS['facebook_config']['debug'] = NULL;
// Create a Facebook client API object.
$this->facebook = new Facebook($this->__fbApiKey, $this->__fbSecret);
$this->facebook->require_frame();
$user = $this->facebook->require_login();
}
public function index()
{
// Retrieve the user's friends and pass them to the view.
$data["friends"] = $this->facebook->api_client->friends_get();
$uid=$this->facebook->api_client->users_getLoggedInUser();
$infos=$this->facebook->api_client->users_getStandardInfo($uid,array('uid','last_name','first_name'));
$exist=$this->users_model->check_user_exists($infos);
if($exist==FALSE){
$this->users_model->insert_user($infos);
}
$this->load->view('game_view' , $data);
}
may be somebody has met the same problem and can help me?
thank and sorry for my poor english :cheese: