Thursday, April 17, 2008

 

New Facebook Example Files

There's a new set of example files for the book's main example (Chapter 15). These files use the April 9, 2008 version of the Facebook client, and they also use PHP 5 (not PHP 4)--although we didn't find any operational differences, so this is just a housecleaning for going forward.

There is one Facebook API change that requires a line of code to be changed ($facebook->api_client->feed_publishTemplatizedAction called from myCAEs.php), and it's documented.

The major change is a slight restructuring in lib.php of get_from_database_and_render. It's been split into two (the pagination code is now in its own function), and instead of a plethora of parameters, there's now an associative array. The step-by-step process of building the app in the book makes it easier to follow, but, as mentioned at the end of the book, once you've been through the process, you can use a more sophisticated structure, which is what this is. (It also makes the code somewhat more reusable).

When you download the files, please take a moment to join the Downloads List. We don't send out much by way of mail, but it's important that we be able to contact you with updates. Particularly now that we're waiting for some revisions from Facebook on Profile pages, we want to be able to let you know as soon as we have revised files.

Note that the sample app at http://apps.facebook.com/jfexample is now running against these revised files. Also, the intention is to place new versions like this next to the old version so you can choose which one to use.

Visit the book's Facebook Page for more info.

Labels:


Comments: Post a Comment



Links to this post:

Create a Link



<< Home

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]