Welcome Guest, Not a member yet? Register   Sign In
Facebook Controller
#21

[eluser]searain[/eluser]
Sorry if I post not related issues at this thread. But I think you are the expert of CI facebook application here and this issue seems to modify on the codes of your controller or the other two controllers you mentioned.

I found some threads, using the same controller as yours, but add one line

parse_str($_SERVER['QUERY_STRING'],$_GET);


Code:
// Prevent the 'Undefined index: facebook_config' notice from being thrown.
        $GLOBALS['facebook_config']['debug'] = NULL;
      
        parse_str($_SERVER['QUERY_STRING'],$_GET);
          // Create a Facebook client API object.
        $this->facebook = new Facebook($this->__fbApiKey, $this->__fbSecret);
        $this->user = $this->facebook->require_login();

And then set up

$config['uri_protocol'] = "PATH_INFO";

or

$config['uri_protocol'] = "ORIG_PATH_INFO";

The reason to add this changes is to make the code like this working

<fb:iframe src="http://cifacebook.foliosystems.ca/google_map" smartsize=true></fb:iframe>

the src is pointing to a CodeIgniter page, without the set up changes, facebook application doesn't understand the url.

I did it, and it works. But I am not quit clear about the codeigniter or facebook logic behind this set up.

Any advices?
#22

[eluser]123wesweat[/eluser]
does this still work i am getting

Fatal error: Class 'Facebook_Controller' r' not found
#23

[eluser]Fatih[/eluser]
Yes this class is still working. Your problem is MY_Controller.php problem, I guess.

Please check your application/config/config.php at 108th line at first.
It should be : $config['subclass_prefix'] = 'MY_';

Then check your location of MY_Controller.php file. It should be application/libraries




Theme © iAndrew 2016 - Forum software by © MyBB