[Fixed]-Facebook, Django, and Google App Engine

6👍

Adding the Facebook directory from the PyFacebook install directory to the app-engine-patch application allows you to add ‘facebook.djangofb.FacebookMiddleware’, to the MIDDLEWARE_CLASSES in settings.py. Then your view can use ‘import facebook.djangofb as facebook’ and ‘@facebook.require_login().’

I haven’t gone end to end, but when I tried to display the view preceded by ‘@facebook.require_login()’, I was redirected to the Facebook login.

8👍

I run a system on for social networks and facebook on GAE with back-end in Python, front end in Javascript and Flash. I use mostly client side js libraries to pass data back to the server side datastore. This library for facebook to be exact: http://code.google.com/p/facebookjsapi/

There is a reason for this. Most of what we are doing will be running on its own site, in iframes in different social networks and in widgets etc. But for the most part this has worked very well. It is good because we can swap out our backend at any time or even run it on multiple platforms as it is also using a python rest GAE library but any backend would do with this setup.

0👍

According to this post, you need a slightly modified PyFacebook that you can download from a URL given in said post (I haven’t tried it myself, though).

Edit: that link is wrong — better link and more discussion on this thread.

Leave a comment