![]() |
Facebook login - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Facebook login (/showthread.php?tid=69775) |
Facebook login - Marcolino92 - 01-16-2018 Hello guys, sorry for the question, which I have already tried immensely on google but I could not make it with any tutorial present. I would like to create a facebook login, but it seems that every tutorial is not fully functional. Can you give me a guide or a small example of this? I would simply like a login with an obvious system of permissions (if logged in or not). I've tried a lot of guides, but it seems to always miss something or always make a mistake. RE: Facebook login - neuron - 01-16-2018 I used this library: https://github.com/facebook/php-graph-sdk/contributors and put it to application/third_party folder usage: 1. I created Facebook.php library in appication/library: PHP Code: class Facebook { 2. In login controller: PHP Code: public function index(){ PHP Code: public function facebookLogin() your facebook configs in applicaton/config/config.php: PHP Code: $config['fb_config'] = array( RE: Facebook login - Marcolino92 - 01-16-2018 Thanks for your help, can you tell me where to upload the facebook sdk? And how to call the folder? RE: Facebook login - neuron - 01-16-2018 (01-16-2018, 12:16 PM)Marcolino92 Wrote: Thanks for your help, can you tell me where to upload the facebook sdk? And how to call the folder? Everything is in my answer read carefully RE: Facebook login - bvrignaud - 01-17-2018 Hello, You can use my library : https://github.com/bvrignaud/ci-fb-ion-auth RE: Facebook login - Marcolino92 - 01-19-2018 Hi guys, I tried with a library but this error appears. It does not find the class. I inserted the Facebook "Facebook" SDK folder inside the Library. Where am I wrong? An uncaught Exception was encountered Type: Error Message: Class 'Facebook\Facebook' not found Filename: /home/mhd-01/www.augustani.it/htdocs/application/libraries/Facebook.php Line Number: 65 |