Social media sites such as Facebook provide a great way of advertising our games by getting our players to spread the word for us. There are countless examples of games which allow players to post a message to their Facebook wall or Twitter feed to show off their latest high score or boast about achieving a certain target in the game.
In this section we will take a detailed look at how we can implement integration with Facebook and we will also talk briefly about Twitter.
Marmalade comes with an API called s3eFacebook that wraps up most of the tricky stuff involved in communicating with the Facebook servers. Unfortunately this ease of use does come at a price, which is that it is only supported on iOS and Android.
If Facebook support is required across all platforms, we would need to implement everything from scratch using HTTP requests via the IwHTTP API provided with Marmalade. This is a challenging task, so we'll be using the s3eFacebook API in...