- Someone visits your application (i.e http://apps.facebook.com/yourapp/), what they see is the canvas.
- Visiting the canvas causes facebook to makes a callback to your application (i.e http://www.harryisawesome.com/yourapp/callback/)
- The information passed by facebook in the callback is parsed by your application which then determines what gets returned and hence displayed in the canvas.
- Think proxy (indirect connections).
The application comes bundled with the pyfacebook library and assumes that you have read chapter two and three of the excellent freely available pylons book and or are familiar with the basics of how Pylons works. I also assume that you have read the facebook developer getting started page.
In order for this demo to work you will need to edit development.ini, change the port to something appropriate and add the api_key, app_id, url and secret key for your application. All of these should be provided when you create an application on facebook (follow the instructions on the facebook developer getting started page).
Pingback by JqueryTwitter: A simple Twitter Pylons example using Jquery and python-twitter « Harry Tormey — October 4, 2009 @ 7:01 am