I'm trying to play with GAE and Facebook connect integration. It seems like others have easily configured them, but I'm having some trouble setting it up.
I've downloaded the sample app and that works great. Then I got the PyFacebook code from GitHub and put it in the /common directory, the same one as the /appenginepatch directory, and added the Facebook middleware to the main settings.py as well as adding the Facebook API keys. I then tried to follow the PyFacebook documentation and use "from facebook.djangodb import facebook" and put the "@facebook.require_login()" decoration on the "list_people" method in myapp/views.py. This doesn't work because it complains it can't find the method require_login in the facebook module. So my first question is: Why does "from facebook.djangodb import facebook" work? I changed this temporarily to "import facbeook.djangodb" and changed my decorator to "@facebook.djangofb.require_login()" and then tried to navigate to "http://localhost/person/", which uses the "list_people" handler. However, now I hit an error related to the facebook utility and after some debugging, it happens because there are some cookies that get created/populated with the value of "None" and it generates an error when it tries to convert it to an integer. Maybe it's a bug with PyFacebook, but I doubt it since others seem to be able to get this to work. Anyone have ideas on how to setup a simple example with app engine patch and FB connect? Any help is really appreciated. Andrew--
You received this message because you are subscribed to the Google Groups "app-engine-patch" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/app-engine-patch?hl=en.
