Now let's take a look at the example code associated with this chapter.
The Facebook project brings together into one place all the information contained in this chapter about posting to a user's Facebook wall so you can easily see how to implement the code in a more real-world application.
On running the sample, we are presented with two menu buttons. The first allows us to log in and out of Facebook while the second allows us to post a message to our wall when we have successfully logged in. A status message will be displayed at the bottom of the screen.
The s3eFacebook API has been further wrapped into a small class called Facebook
, which deals with logging in and out of Facebook and building up Graph API requests. This is a good approach as it provides a further layer of abstraction and keeps all the s3eFacebook API usage in one place. If the core Facebook API were to change for any reason (possible, given that Facebook could potentially change the way in...