Posted on April 25, 2008 by michaelangela
Doesn’t work:
ids=request.GET['ids[]‘]
Does work:
ids=request.GET.getlist(’ids[]‘
A typical Facebook friend invite sends the ids to be invited to your site as an array in ‘ids[]‘. Normally, you can pull values out with just request.GET['key']. But since the value of this particular key is an array and not just a string, you can’t (at least I wasn’t able to) just [...]
Filed under: dev, django, facebook, python, snippet, tip | No Comments »
Posted on April 23, 2008 by michaelangela
I think whereivebeen is far, far over 250,000 users. It’s successful. The problem is getting it to at least pay for itself. I haven’t seen an update past what is here though. I know some ads were put in and they aren’t obnoxious or anything so as a user I am fine with them. But [...]
Filed under: business development, facebook, monetize | No Comments »
Posted on April 22, 2008 by michaelangela
I sure wish there was something like this for Eclipse and Aptana! Perhaps this could be a start? Here’s to hoping…!
Facebook Platform Developer Forum / TextMate FBML plugin
Put together a start of a TextMate Bundle for Facebook. Does some cool stuff, like code completion and doc lookup. If anyone wants [...]
Filed under: cool, dev, facebook, fbml, plugin, textmate, tip, tool | No Comments »
Posted on April 18, 2008 by michaelangela
You can use this to set up a Facebook User within you Django app. This of course uses the middleware which is optional as described here.
Django snippets: Little middleware that create a facebook user
Install **PyFacebook** package.
After make all steps in tutorial above, put this code in your [...]
Filed under: dev, django, facebook, python, snippet, tip | No Comments »
Posted on April 17, 2008 by michaelangela
So say you have a Facebook app and it runs on Django. Standard practice is to load the middleware. Middleware by default adds a bit of overhead. It’s needed for some bits but completely unnecessary for anything that doesn’t need it. This is one way to take it out if you feel the need for [...]
Filed under: dev, django, facebook, python, tip | No Comments »