step1 create a new application in facebook
fellowing the tutorial of facebook wiki, that would be easy. To get the API key and secret key.
set the connet URL ,domain URL and some app profile.
step2 open a server for the app test.
this server is actully for uploading the webpage code by ftp.
step3 implement and test the functions
fellow the functional requirements . login ,loginout ,share ,send feed , invite friend and so on.
step4 add the code in to the webpage
to upload the real webpage code and backgroud code to achieve these functions.
step5 Test the new website and app