I am trying to integrate Facebook login with my website using FuelPHP. I am a newbie in FuelPHP. I did what is said here fuelphp-social-package
When trying to test it I am getting following error.
ErrorException [ Fatal Error ]:
Cannot use object of type Facebook as array
/home/everycite/facebook/src/base_facebook.php @ line 226
and in line 226 is follwing code of base_facebook
:
public function __construct($config) {
$this->setAppId($config['appId']);
...
}
$config['appId']
is showing correct api id of my app. I am not getting it. How to solve this?
fuelphp have package for managing login by social media (facebook, google, linkedin,twitter) here the link http://fuelphp.com/docs/packages/auth/opauth/intro.html