home personal workZone travel about
code.pst » tech musings and code posts

Facebook demo app – America Votes

So here is the complete source for my version of a hello world facebook app. It starts off from their footprints example that comes with the facebook client. This is a simple app where you vote for your pick of the 2008 president from the huge list of candidates at the moment! It then shows a tally of the top candidates and allows you to invite your friends.

You can see it in action at http://apps.facebook.com/americavotes

America Votes Screenshot

If you look at the source you will see it is pretty straight forward and I’ll try and post some snippets with details if necessary. A few pieces of code are copied from some public internet sources.

Download: America Votes Source

Tags: ,

2 Responses to “Facebook demo app – America Votes”

  1. Leda Says:

    Hi rahul
    I am seeing the code of your application.I want to ask you when you create application you you check Use FBML or Use iframe?
    When i check Use FBML it gives me error:

    Errors while loading page from application

    Received HTTP error code 401 while loading http://test.italbania.org/facebook/amer … 22984bdd13

    There are still a few kinks Facebook and the makers of My_America are trying to iron out. We appreciate your patience as we try to fix these issues. Your problem has been logged – if it persists, please come back in a few days. Thanks!

    When i check Use iframe the FBML doesnt render.
    where is the problem.plesa help me

  2. rahul Says:

    The app uses FBML. Not sure what your could be. I wrote this like a year ago and the fb platform has really changed since then. You may want to find more current examples.

Leave a Reply