Codeigniter and Facebook SDK |
[eluser]ibnclaudius[/eluser]
I'm creating an auth library that will also have login and register with Facebook. The first time the user login with facebook, he will be redirect to register page, to fill a password, after that, he will always login automatically. And register will be exactly like the first login. I download the 3 files inside the folder "src" from the facebook/php-sdk project (https://github.com/facebook/php-sdk) and put it inside application/library, renamed the facebook.php to facebook_lib.php and so changed the class name. Here's my the facebook part from my custom auth config: Code: $config['facebook']['active'] = TRUE; and from my custom auth library: Code: /** But it's not working. The session "id" output "0" even if I'm already logged in facebook and the "login_url" output "https://www.facebook.com/dialog/oauth?client_id=360599007314576&redirect_uri=pegaoupassa.com&state=855d833be1c137bf347efd340ccd09e1&scope=email,user_birthday,publish_stream" that give's error when accessing. What am I doing wrong? Another thing, would you guys recommend I change any other thing? Thanks! |
Welcome Guest, Not a member yet? Register Sign In |