Now that you know a little bit about Facebook Platform, you're probably eager to start building an application. You can get a basic application up and running in minutes.
Before we begin, there are a few things you need to know. In order to create a Facebook application, you should know or need the following:
Now you're ready to get started! You can read in depth instructions on the Facebook Developers Wiki, but this outline here should give you good enough idea to get you going.
Setting Up Your Application
Now we need to configure a few more settings before we can get into the code. Click "Edit Settings". Notice that the support and contact email addresses are pre-populated with the email address associated with your Facebook account. Enter a callback URL. This is the address where your application lives on your server, or the server where the application is being hosted. Enter a canvas page URL. A canvas page is the address where your application lives on Facebook. When users access your application on Facebook, they?re taken to your canvas page. It?s a good idea to use your application name or something similar. It must be at least 7 characters long and include only letters, dashes and underscores. You want users to be able to put your application on their profiles, so select “Yes” at “Can your application be added on Facebook?” Believe it or not, this is all we really need to get a simple application ready to go. Click "Save and continue".Configuring Your Application on Your Host
Before you configure your application on your server, you need to make sure your server is ready to host a Facebook application.
Once your host is configured, you can copy the sample code to the server:
And that?s it. This was a simple demonstration on how to quickly build a Facebook application. It demonstrated some basic Facebook Platform concepts, as well as the Platform API and FBML, Facebook?s markup language.
We didn't cover integration points, which is how you can weave your application deeper into Facebook so you can provide your users with a richer experience. Our sample application, Smiley, includes all the integration points. And you can see them explained in our anatomy of a Facebook application.
Need Help or Have Questions?
Facebook Platform is constantly evolving, so you need to keep up with the changes. The best ways to keep up with what we're doing is to:
Finally, every week we push our code out to our developers a day before we release it to our users, so you can test your application against the new changes. You can point your application to the beta site, www.beta.facebook.com.