Facebook PHP SDK v3.0.0 with CodeIgniter v2.0.2 - How to integrate? |
[eluser]Unknown[/eluser]
Thanks Calebe, It looks like that project has some interesting code for handling request id's.... which co-indecently is something I'm working on today (great timing!). I seems the demo url isn't totally working as expected http://apps.facebook.com/facebook-ignited/ 1st it redirected to the developers url (after FB permissions) and not back to the Facebook app canvas url. Also the "Try a request" and "Try publishing to your feed" links did not work for me... Could be because I am on Firebox 5 (beta) ... or that PHP SDK v3.0.0 is not compatible yet with JavaScript SDK logins.... have 4 weeks to wait!: http://developers.facebook.com/blog/post/503 For this reason I have stuck with v2.1.2 of the PHP SDK (for now). For integration I have done the following: 1. Renamed the SDK file "facebook.php" to "Facebook.php" 2. Added this to the top line of that file: Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 4. Added my own "facebook.php" config file to /application/config/ (includes: app id, api key, secret key, canvas url, and several other useful urls ) 5. In /application/config/autoload.php I auto load the "facebook" config file Code: $autoload['config'] = array('facebook'); Code: $fb_config = array( FYI I'm not sure about assigning by reference on the line: Code: $data['facebook'] =& $this->facebook; P.S I have have a Controller named "site"; with the Views: index, canvas, tab, privacy, terms. And "no-view" controllers for: deauthorize ... and working on an "invite" controller for multi-friend-selector id capturing. For my app all the action takes place in the /site/tab/ controller since my app is to be used as a tab on Facebook Pages. I'm using the JavaScript SDK to parse XFBML and subscribe to "like"/"un-like" events for the page. |
Messages In This Thread |
Facebook PHP SDK v3.0.0 with CodeIgniter v2.0.2 - How to integrate? - by El Forum - 05-23-2011, 12:35 AM
Facebook PHP SDK v3.0.0 with CodeIgniter v2.0.2 - How to integrate? - by El Forum - 05-24-2011, 10:49 AM
Facebook PHP SDK v3.0.0 with CodeIgniter v2.0.2 - How to integrate? - by El Forum - 05-24-2011, 06:19 PM
Facebook PHP SDK v3.0.0 with CodeIgniter v2.0.2 - How to integrate? - by El Forum - 06-03-2011, 07:39 PM
Facebook PHP SDK v3.0.0 with CodeIgniter v2.0.2 - How to integrate? - by El Forum - 06-03-2011, 07:41 PM
Facebook PHP SDK v3.0.0 with CodeIgniter v2.0.2 - How to integrate? - by El Forum - 06-15-2011, 06:37 AM
Facebook PHP SDK v3.0.0 with CodeIgniter v2.0.2 - How to integrate? - by El Forum - 06-15-2011, 11:10 PM
Facebook PHP SDK v3.0.0 with CodeIgniter v2.0.2 - How to integrate? - by El Forum - 07-11-2011, 03:00 AM
Facebook PHP SDK v3.0.0 with CodeIgniter v2.0.2 - How to integrate? - by El Forum - 09-18-2012, 12:53 PM
|