Game Development Reference
In-Depth Information
6. Finally, the Enable Ticker checkbox lets you decide whether the user will
be using the Facebook Ticker interface (which is a real-time timeline of wall
posts and other events) or the older standard interface. Not all users have
access to the newer Ticker interface, so it is again worth testing your project
using both methods.
7. Click the Add button to create the new users. You will return to the screen
first shown in step 3, but the new users will be shown at the bottom of the
page now.
8. Each test user will have a couple of links next to them. You should first
click on the Set Password link to allow a password to be set for this user. A
textbox will appear, to allow you to enter a password.
9. Next, click on the Switch To link next to one of the users to log in as that user
and display their Facebook wall.
10. At the top right of the test user's wall, there should be a button labeled Edit
Proile . Click on it.
11. On the Edit Profile screen, click on the Contact Information link in the left-
hand side panel.
12. At the top of the screen there should be two e-mail addresses associated with
the profile. One of these should be of the form username@tfbnw.net , which
is the e-mail address we will need to use later to log in as the test user. Make
a note of this e-mail address and the password you set in step 8.
Adding the s3eFacebook API to a Marmalade
project
With the Facebook App and test users configured, let's get down to adding Facebook
support to a Marmalade project. The first thing to do is open the project MKB file and
add s3eFacebook to the list of subprojects . We can then include the s3eFacebook.h
file whenever we need to make use of the s3eFacebook API functions.
We also need to add another configuration setting to the MKB file in the
deployments section. The line in question looks like this and is only needed for iOS
builds. On iOS our application temporarily loses focus when we log in to Facebook
and this value ensures that we regain control when the login process is completed:
iphone-bundle-url-schemes="fb0123456789abcdef"
The hexadecimal value following the initial fb should be replaced with the 16-digit
App Id generated by the Facebook App.
 
Search WWH ::




Custom Search