Sunday, November 8, 2009

XAMPP and Facebook

Ah yes, this is the perfect example of why XAMPP is so god-damned great: A few days ago yours truly, was intrigued by the buzz around Facebook and its application framework. After some light reading, what seemed like a long and perilous road became a surprisingly short exercise in flipping a few switches and copy/pasting past it all to get a taste of what it feels like to be a Facebook Application Developer.

Here's the breakdown:
  1. Get a Facebook account and login to it.
  2. Add Facebook's Developer application to your profile.
  3. Go through the motions of creating an application with Facebook which is really nothing more than a registration process of sorts.
  4. If you understand the Anatomy of a Facebook Application then you know that the two most important components for creating/registering an application in/with Facebook are:
    1. Callback Url
    2. Canvas Page URL
  5. Get XAMPP. (I know the site looks shady but I'm not their UI guy.)
  6. If you don't have a domain name, simply login to your home router and figure out your real IP address.
  7. Edit your router's Port Forwarding settings to allow connections from the outside world to come in to your computer at port 80.
  8. Startup Apache from your XAMPP install and perform a quick sanity test to see if you can access the default web site.
  9. Take the source for a default index.php page provided by Facebook and throw it onto your machine and point your Apache's httpd.conf file to it. Also throw down 3 more PHP files that make up the Facebook client libraries.
blah blah blah

0 comments:

Post a Comment