Facebook Integration
Facebook today needs no introduction, as it has become the most widely used social network on the planet. Facebook provides the ability for developers to develop applications that can interact with Facebook's data. Some of those applications can even reside and be hosted inside Facebook, providing an even richer experience for the user without ever leaving the social network's website.
We will interact with Facebook via their Graph API, which will then allow us to publish open graph stories (such as status messages, photos, and so on) from our application. Understanding the inner working of those APIs is out the scope of this book, but there is a lot of documentation online (http://developers.facebook.com/docs/reference/api) if you ever need to dive deeper into this topic.
Creating our application
Even though our application will not be running inside the Facebook website, we must declare it so that it is recognized by the API. To do this, once logged into Facebook, we...