Skip to main content

How do I write Facebook apps using Django?


Am in the process of developing some app for Facebook using Django! I've started first by building the app in Django and its shaping up pretty well, now am wondering how can I make it a Facebook app.



I would really appreciate real world example for Facebook apps made with Django.


Source: Tips4allCCNA FINAL EXAM

Comments

  1. I just saw the presentation of Mr. Eric Florenzano at Pycon 2010, and he talks about a side project he did on facebook using django.

    From PYCON 2010:


    If you've been using Django for any
    amount of time, you've probably
    learned some pretty standard practices
    on how to use it. This talk aims to
    shatter those conceptions and teach
    you alternative ways that you could
    use Django.

    These alternate ways
    come broadly in two varieties: Using
    parts of Django outside of it, and
    choosing alternatives to what Django
    offers. If you haven't done either of
    these things before, it may seem
    tricky or difficult. In fact, it may
    not be.

    This talk will walk you
    through the process and talk about
    what to expect if your project just
    doesn't seem to "fit the mold".


    I recommend you check out his blog and the presentation.


    Blog: http://www.eflorenzano.com/
    Presentation: http://blip.tv/file/3261337


    More Resources:


    How to build a Facebook app in Django
    Example Facebook application in Django
    Two-Faced Django Part 1: Building a
    project that exists simultaniously
    on Facebook and the web


    Two-Faced Django Part 2: Models and Django Testing
    Two-Faced Django Part 3: Newforms
    Two-Faced Django Part 4: The Webapp

    ReplyDelete
  2. Python Sdk is rather badly maintained.
    Think you best option is Django Facebook:
    https://github.com/tschellenbach/Django-facebook

    Basic tutorial
    http://www.mellowmorning.com/2011/06/23/django-facebook-2-0-integrating-facebook/

    ReplyDelete
  3. Info:

    here, here and here + pyFacebook.

    ReplyDelete
  4. If you just want to get started, check out Fandjango on github. Its a simple middleware layer that adds a facebook_user attribute to the request object when the user is logged in, and sets it to None when they are not logged in. It also has an easy way to call the Graph API with the users' credentials.

    Note: It only works on Facebook Apps. Websites using facebook connect use a slightly different protocol.

    Also note: Any library that references 'pyfacebook' is using the old FB API and you should avoid that. The new one that uses the Graph API is python-sdk. You shouldn't use python-sdk either since its deprecated - thanks @pydanny. I haven't researched it, but facebook-sdk looks actively maintained.

    ReplyDelete
  5. This tutorial teaches you to create a simple django based application on facebook. It also includes references to more resources.

    ReplyDelete

Post a Comment

Popular posts from this blog

[韓日関係] 首相含む大幅な内閣改造の可能性…早ければ来月10日ごろ=韓国

div not scrolling properly with slimScroll plugin

I am using the slimScroll plugin for jQuery by Piotr Rochala Which is a great plugin for nice scrollbars on most browsers but I am stuck because I am using it for a chat box and whenever the user appends new text to the boxit does scroll using the .scrollTop() method however the plugin's scrollbar doesnt scroll with it and when the user wants to look though the chat history it will start scrolling from near the top. I have made a quick demo of my situation http://jsfiddle.net/DY9CT/2/ Does anyone know how to solve this problem?

Why does this javascript based printing cause Safari to refresh the page?

The page I am working on has a javascript function executed to print parts of the page. For some reason, printing in Safari, causes the window to somehow update. I say somehow, because it does not really refresh as in reload the page, but rather it starts the "rendering" of the page from start, i.e. scroll to top, flash animations start from 0, and so forth. The effect is reproduced by this fiddle: http://jsfiddle.net/fYmnB/ Clicking the print button and finishing or cancelling a print in Safari causes the screen to "go white" for a sec, which in my real website manifests itself as something "like" a reload. While running print button with, let's say, Firefox, just opens and closes the print dialogue without affecting the fiddle page in any way. Is there something with my way of calling the browsers print method that causes this, or how can it be explained - and preferably, avoided? P.S.: On my real site the same occurs with Chrome. In the ex