Original tutorial -> http://buzzknow.com/2010/03/04/creating-a-simple-facebook-application-tutorial-with-php/
This is a collection of articles about programming-based Facebook application FBML, XFBML, FBJS. We will divide into several parts so that beginners can understand each section clearly than directly provide all at once. This time we will try to create a simple application to update our status.
To create a Facebook application, at least you have a domain and hosting their own with support PHP 5 and MySQL if you need a database application. Knowledge of HTML, PHP, CSS, Javascript is also required.
In part 1 we will start from the application of our application to get the API Key and API Secret. Please login first into your Facebook account, then go to the developers in http://www.facebook.com/developers.
Creating A Simple Facebook Application Tutorial With PHP Step 1
In this section, please select “Set Up New Application”. Then enter the name of the application you want, do not forget to choose “agree” to indicate that you agree with the Facebook terms and conditions.
Creating A Simple Facebook Application Tutorial With PHP, Set Application Name
On the next page, you will be given the id, the API key and API secret of your application, please note this information. You also can give a description of the usefulness of your application or upload icon and logo for your application.
Creating A Simple Facebook Application Tutorial With PHP, Set Application Description and get API key and API Secret
Creating A Simple Facebook Application Tutorial With PHP, Set Application Icon and Logo
Log into Canvas menu, please enter your Canvas Page URL in want. Remember Canvas Page URL must be unique not just with existing applications before, if it is not available, then you can give prefix on Canvas Page URL. To Canvas Callback URL, please fill in the URL address from your provider where you run the application. At the bottom, Canvas Setinggs, for the moment please select FBML as the rendering method.
Creating A Simple Facebook Application Tutorial With PHP, Set Application Canvas URL, Connect URL, Render Setting
Now we go to the Connect menu, Connect to the URL field, enter the same URL with your URL Callback Canvas. If it is different then there are some features that can not be used as FB.Connect or to render FBML, XFBML in applications that use Iframes as canvas.
Creating A Simple Facebook Application Tutorial With PHP, Set Application Connect URL
Let us evaluate what we have learned this time.
You have to register as a Facebook developer to create their own applications.
You learn to setup a new application and get the API key and API secret.
You’ve learned the basic settings to run an application using FBML, where you get the URL of your application along with the original URL of your applications are on your own server.
Creating A Simple Facebook Application Tutorial With PHP, Conclusion Step 1
In the next section, we will start working on the PHP files and other support, including the settings for your server.
Source: http://buzzknow.com/2010/03/04/creating-a-simple-facebook-application-tutorial-with-php/