Facebook Controller |
[eluser]Fatih[/eluser]
Facebook is getting bigger and more of us want to code with API of Facebook. If you integrate with CodeIgniter and Facebook, you have two choice: one of them is Junal's approach and another way is Elliot's way. My approach is quite different then. Firstly, I create a config file which name is facebook.php in application/config directory as coded below. You shall be changed these sentences as your case. Code: <?php Secondly, I downloaded Facebook client library form developer center. These files shall be stored on application/plugins directory (if there is not folder named plugins then you must create it) and renamed my facebook.php file to facebook_pi.php. These steps are almost same with Junal's way. After that I create MY_Controller.php file on application/library directory as coded below: Code: <?php if (!defined('BASEPATH')) exit('No direct access allowed.'); Then, create a default controller file which name is welcome.php on application/controller directory : Code: <?php Finally, here is my welcome_message.php file which is stored on application/view directory. Code: <style type="text/css"> This is my way |
Messages In This Thread |
Facebook Controller - by El Forum - 06-17-2009, 01:52 AM
Facebook Controller - by El Forum - 06-17-2009, 01:05 PM
Facebook Controller - by El Forum - 07-22-2009, 08:02 AM
Facebook Controller - by El Forum - 07-22-2009, 08:14 AM
Facebook Controller - by El Forum - 07-22-2009, 03:16 PM
Facebook Controller - by El Forum - 07-22-2009, 11:47 PM
Facebook Controller - by El Forum - 07-23-2009, 06:34 AM
Facebook Controller - by El Forum - 07-23-2009, 06:59 AM
Facebook Controller - by El Forum - 07-26-2009, 10:31 AM
Facebook Controller - by El Forum - 07-26-2009, 12:49 PM
Facebook Controller - by El Forum - 07-26-2009, 02:48 PM
Facebook Controller - by El Forum - 07-26-2009, 02:50 PM
Facebook Controller - by El Forum - 07-26-2009, 03:02 PM
Facebook Controller - by El Forum - 07-26-2009, 11:27 PM
Facebook Controller - by El Forum - 07-26-2009, 11:36 PM
Facebook Controller - by El Forum - 07-27-2009, 02:22 AM
Facebook Controller - by El Forum - 07-28-2009, 12:35 PM
Facebook Controller - by El Forum - 07-28-2009, 01:36 PM
Facebook Controller - by El Forum - 07-28-2009, 02:34 PM
Facebook Controller - by El Forum - 07-28-2009, 11:37 PM
Facebook Controller - by El Forum - 07-29-2009, 11:58 AM
Facebook Controller - by El Forum - 02-25-2010, 12:15 AM
Facebook Controller - by El Forum - 02-25-2010, 12:49 AM
|