Welcome Guest, Not a member yet? Register   Sign In
Problems importing facebook client library
#3

[eluser]Unknown[/eluser]
I'm still have that problem. I've put this code in the config.php, but doesn't worked.




[quote author="igniteflow" date="1267726301"]
Code:
/*
| -------------------------------------------------------------------
|  Native Auto-load
| -------------------------------------------------------------------
|
| Nothing to do with config/autoload.php, this allows PHP autoload to work
| for controller types and some third-party libraries.
|
*/
function __autoload($class)
{
    if(strpos($class, 'CI_') !== 0)
    {
        $class = APPPATH . 'classes/'. $class . EXT;
        $lib = APPPATH . 'libraries/'. $class . EXT;

        if(file_exists($class))
        {
            include_once( $class );
        }

        else if(file_exists($lib))
        {
            include_once( $lib );
        }
    }
}
[/quote]

And then, these messages started to show.

Code:
A PHP Error was encountered

Severity: Warning

Message: Missing argument 1 for Facebook::__construct(), called in /home/project/system/libraries/Loader.php on line 928 and defined

Filename: libraries/facebook.php

Line Number: 165
A PHP Error was encountered

Severity: Notice

Message: Undefined variable: config

Filename: libraries/facebook.php

Line Number: 166
A PHP Error was encountered

Severity: Notice

Message: Undefined variable: config

Filename: libraries/facebook.php

Line Number: 167


Somebody know how can I resolve that?


Messages In This Thread
Problems importing facebook client library - by El Forum - 03-04-2010, 05:52 AM
Problems importing facebook client library - by El Forum - 03-04-2010, 06:11 AM
Problems importing facebook client library - by El Forum - 08-09-2010, 11:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB