I’ve just developed a website with Django, which uses a database.
Now I would like to implement my application as a Facebook App, usable in Facebook Canvas.
I’m totally a newbie in this area. I’ve searched all day, but I’ve not found any good docs or tutorial for an example. Is it so difficult? Can you give me some hints for beginning?
I don’t want to rewrite all my application in PHP, I still want to use my loved Django.
At the moment Facebook only requires you to work under an Iframe; so you have to show “normal” html content, with no extra stuff. Before you could use FBML -a weird facebook markup language- OR Iframe. Now only iframe. So actually any HTML & CSS page you create -with any javascript- will work.
For Opengraph, the FB API, the best I found is https://github.com/jgorset/fandjango
I had to do a couple of fixes to make it work with my code, but it’s 95% great for login, data retrieval, posting, etc.
https://github.com/jgorset/fandjango-example is a sample app created by the same developer.