Tutotrial FaceBook Application Development With Cake
facebook-platform/client/facebookapi_php5_restlib.php …. plug and play php tutorial app:. php api folder>\\facebook-platform\\footprints …
More PDF Content
TUTORIAL: FB Application Development With Cake
Page 1
TUTORIAL: FB Application Development With Cake
Page 2
Presenters: Adrian Quek and Chee Tji Hun Prepared By: Ditto Who the hell are these guys? Programmers at Ablewise.Com (we know, we know, but it’s a startup, so we need the publicity), geeks, Singaporeans, we could go on, but it gets even more boring. Approach: We’re lazy bums, so it’s mostly going to be screenshots of the app-creation process. Introduction
Page 3
1) A Facebook account (duh)
2) The “Developers” app – Navigate to http://facebook.com/developers/
3) A webserver able to host your app (for our example, it’s a LAMP) Prerequisites
Page 5
1) Go to the developer app
2) Click on the “Set up new application” button
3) Alternatively, just navigate to http://facebook.com/developers/editapp.php?new Here’s what you will see. Creating an app
Page 9
1) Download http://developers.facebook.com/clientlibs/facebook-platform.tar.gz
2) Extract the tarball.
3) You will get the directory “facebook-platform”.
4) The following are the files you will need, relative to the abovementioned directory ? facebook-platform/client/facebook.php ? facebook-platform/client/facebookapi_php5_restlib.php
5) Create a “facebook” directory in your “app/vendors” directory and put those two files into it. Getting the API
Page 10
Using the API with CAKEPHP
Page 11
facebook->require_login() parameters: none returns: the current user’s facebook id behaviour: redirects to app login page if user has not logged in to app facebook->require_add() parameters: none returns: current user’s facebook id behaviour: redirects to add app page if user has not added app Eg: $user = $this->facebook->require_login(); $user = $this->facebook->require_add(); Neccessary client functions
Processing your request, Please wait....