
uiuc Library Search Facebook App

some quick notes:

0. This page has all the initial setup info for what needs to happen on the Facebook side:
http://developers.facebook.com/step_by_step.php

1. All the files in the zip reside on our server.  Facebook basically looks at the index.php and does it's thing from there.

2. Our server uses PHP4, but Facebook assumes PHP5, so i had to monkey with the last part of the code in appinclude.php, so our script (using the If clause stuff) works for PHP4, otherwise you need to include the Try...Catch code from step 11 of the Facebook guide.

3. Our implementation of PHP does not include the SimpleXML library, which is why that folder is in the zip file.  the folder sits in the same directory as index.php, if needed.

4. Documentation is rough for Facebook apps right now, i used a lot of stuff i found surfing the Developer Forums on facebook to get this to work.

some notes on display:

* in order to get the app to display in a profile, the SetFBML method needs to be invoked (in appinclude.php).  i used the <FB:Ref /> tag to have it load in the html from info.php, so that is what gets displayed on someone's profile.  Due to a Facebook bug/feature, if you change the code in info.php, it takes Facebook a long time to figure out it needs to show something different (it is not clearing the cache every time it loads the app).  There is a lot of discussion in the Developer forums about how to make this work better.
