The latest addon is 1.9 (updated on 23Nov2010).
- For the changelog, please visit here.
As a reminder, the online tutorials will help you to build "Our 1st FB App (PHP SDK) v1.0".
- If you are following the tutorials and want to compare what you have done against my work, then getting the source code for v1.0 should be a better choice. Once you feel comfortable developing app on Facebook by using the PHP SDK, then get the code package for the latest version.
Mailing List Service
Note that before downloading starts, you need to complete a survey provided by CPALead.
Sorry that I won't accept email asking for a copy of it. If you have difficulties in completing the surveys or do not want to do that, you can consider subscribing to our mailing list service. For USD29.99 per year, any eBook and free demo application source code packages published here will be sent to you. Payment can be made via PayPa (my paypal account is takwing@graduate.hku.hk). For details, please send email to takwing1hk@yahoo.com.hk.
Setting up the Base Application (v1.4)
First of all, download the source package for v1.4 (this would be the base version for future add-ons).
(version 1.4 source package)
Before uploading the files to your web application server, please perform the followings:
- You need to update the application specific data in config.php, which includes
- $appid
- $appsecret
- $canvas_base_url
- database related info
- Edit php_migrate.php by setting the cancel_url according to your app settings.
- Run the "dtable.sqp" script to create your local database
- this table is required for storing the access_token for demonstrating offline publishing
- this table is required for storing the access_token for demonstrating offline publishing
- Of course, you need to register your application in Facebook.
- While application tab is supported, remember to specify a tab name and set the tab URL as "app_tab.php"
Applying the Add-ons
Once you have setup the base application, you can base on your need to download the corresponding add-ons.
To install the add-on, simply add the files to your base application folder and upload them to your web server. Especially instructions, if any, will be included in the readme.txt of each add-on.
-
add-on 1.5 (uploading photo to albums)
With the release of PHP SDK v2.1.1, photo upload via the SDK is now possible.
The photo upload feature is enhanced to show photo upload both via curl and the php sdk in v1.8
-
add-on 1.6 (creating events) 
Recently, something is done by Facebook in handling the timezone for event created. For details, see http://bugs.developers.facebook.net/show_bug.cgi?id=7210 -
add-on 1.7 (publish stream)

-
add-on 1.8 (Enhanced Photo Upload to albums)
The photo upload feature is further enhanced to include uploading local photos directly to Facebook in v1.8a.
-
add-on 1.8a (Enhanced Photo Upload to albums)

-
add-on 1.9 (Real-Time Update) 
Thank you for downloading the source package!! And in case you have any problems on the code, send me an email and I will try to help.
You can test drive this demo application by visiting here.