Using PyFacebook without the Facebook middleware  11/30/2007
django(73)python(48)pyfacebook(5)facebook(3)  Recently I have
been experimenting with using PyFacebook to create a Facebook
app. In the early stages of development I ran into a bit of a
quandry: how to you use PyFacebook with Django, without using
the PyFacebook middleware?  This is not an inrrelevant question,
because the PyFacebook middleware is just bloat for any views
being loaded that do not directly communicate with Facebook, and
is even inappropriate for some views that do communicate
directly with Facebook (requests made with the FBJSM Ajax
object).  So, without further ado, lets look at how we can use
PyFacebook with Django, without using the middleware.  You'll
need to import the PyFacebook library into your views.py file to
use the examples below. If you install the PyFacebook library
into your Python path, it'll look like this:  import
facebook.djangofb as facebook  Adding Facebook instances to
requests  The first thing we want to do is