Facebook Connect - class init problem |
[eluser]jmadsen[/eluser]
I'll go ahead and feel silly in front of everyone, cuz I can't spot what the issue here is, though I suspect it will be a real groaner. maybe describing it will jog something in my mind. i am doing a Facebook Connect integration with CI2.0, based on this guy's work: http://hitsend.ca/2010/10/facebook-conne...deigniter/ which I've upgraded to 2.0 some relevant code bits are: config/facebook.php: Code: $config['facebook_api_key'] = 'xxx'; (it is the ID, not the key, as he misnamed his array key) controllers/fb_login.php Code: function index() { libraries/fb_connect.php Code: include(APPPATH.'libraries/facebook/facebook.php'); and finally, the facebook php library: libraries/facebook/facebook.php Code: public function __construct($fb_config) { The best way I can describe the issue is just to give you the output of print_r($fb_config): Code: Array ( [facebook_api_key] => xxx [facebook_secret_key] => xxx) and Message: Undefined index: appId Message: Undefined index: secret The facebook __construct() has been loading with the config file's $config[] array; no idea why it is doing this. Thanks in advance for any leads or spottings of "dumb things I've done"
[eluser]michaelbenbender[/eluser]
I'm not sure this answers your question, but Facebook just released an updated PHP SDK the other day. http://developers.facebook.com/blog/post/503 You can put these two PHP files in your libraries folder and use them directly as in the examples in that blog by using Code: $this->load->library('facebook'); I have not dealt with facebook connect, but I was under the impression that is the old legacy facebook integration process and that the graph API is the new way (and much easier in my opinion).
[eluser]Nisha S.[/eluser]
I have wrote a library and you can get it from http://www.betterhelpworld.com/codeignit...odeigniter which is based on new SDK.
[eluser]jmadsen[/eluser]
sorry - never came back to answer this. it was "a real groaner" as i suspected - a class conflict with a previously installed facebook_connect library I didn't know about :-( |
Welcome Guest, Not a member yet? Register Sign In |