Game Development Reference
In-Depth Information
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 this
part of the topic.
Creating a Facebook app
The first step in Facebook integration to a Marmalade project is to create a Facebook
App on the Facebook website, which is really little more than a way of authenticating
the source of any Facebook API requests.
When we create a Facebook App we are provided with two hexadecimal values. One
is called the App Id (also known sometimes as the API Key ) and the other is the App
Secret . These values will be needed when we send requests to Facebook in order to
identify our application on the Facebook servers.
To create a Facebook App follow these steps:
1.
Log in to Facebook by visiting www.facebook.com and entering your
username and password. If you do not already have a Facebook account,
you can also sign up for one at this address.
2.
Once you are logged in to Facebook, visit the URL www.facebook.com/
developers . If you have never created a Facebook App before, you will see a
dialog like the one in the preceding screenshot. This screen has a single drop-
down box that allows you to specify whether everyone or just your friends
will be able to see posts created by the application. For now leave this set to
the default value of Everyone and click on the Go to App button.
 
Search WWH ::




Custom Search