How to use the facebook sdk

I want to explain with examples, how to use the facebook sdk, from the creating an app to the output