Facebook-PHP-SDK - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Facebook-PHP-SDK (/showthread.php?tid=53284) |
Facebook-PHP-SDK - El Forum - 07-17-2012 [eluser]ibnclaudius[/eluser] I'm developing a simple authentication trough Codeigniter 2.1.2 and Facebook-PHP-SDK 3.1.1, but I have no idea why it's now working. I've downloaded all files from the src folder (https://github.com/facebook/facebook-php-sdk/tree/master/src) into my libraries. The login seems to be working, but when the user is redirected back to my website, the Facebook getUser() function always returns 0! Code: <?php Facebook-PHP-SDK - El Forum - 07-18-2012 [eluser]Jason Hamilton-Mascioli[/eluser] Please try my facebook codeigniter starter kit and maybe it may help figure out your issue ... https://github.com/hamiltonmascioli/facebook-starter-kit/blob/master/facebook/examples/example.php Facebook-PHP-SDK - El Forum - 07-18-2012 [eluser]Jason Hamilton-Mascioli[/eluser] For your specific issue try reading ... http://stackoverflow.com/questions/7047691/codeignitor-facebook-javascript-sdk-php-sdk-redirect-after-facebook-login-does This has also worked ... Code: adding FB.api('/me', function(response) { to the login |