Facebook-SDK-Spark adds the facebook sdk library to CodeIgniter.
The facebook SDK is available for Codeigniter via Sparks.
You'll need to setup and app and get an appID and Secret key from Facebook.
And save this appID and Secret in the '/sparks/Facebook-SDK/[version #]/config/facebook_config.php'.
Once you've got the spark set up, you can load it using:
$this->load->spark('Facebook-SDK/[version #]');
When Facebook-SDK is loaded, you can make calls to the facebook api as follows.
$this->facebook->getLoginURL();
$this->facebook->api('/codeigniter');
Other documentation for the Facebook PHP SDK can be found at https://github.com/facebook/php-sdk/.
Joey Blake [email protected]
Facebook-SDK-Spark is released under the Apache License.
Copyright [2012] [Joey Blake]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.