Beruflich Dokumente
Kultur Dokumente
com
Colin Creitz Partner Engineer, Games
Games on Facebook.com
Discovery/Acquisition:
Users discover apps through their App center, friends, play stories etc.
Retention:
Channels like Bookmarks, notications enable developers to easily re-engage users.
Monetization:
Facebook payments allow developers to monetize
Step : Authentication
Facebook Authentication
Built on OAuth
User Access Token - take action on behalf of a user App Access Token - take action on behalf of an app
Facebook Authentication
Oauth tokens are bearer
them
Permissions
Perm Name
basic
email address
publish_actions
Step : Requests
GET https://graph.facebook.com/ME
Demo: Requests
Use the JavaScript SDK to send Invites via Requests Use the Graph API or the JS SDK to manage Requests
Step : Feed
Demo: Feed
Use the JS SDK to post to the users Timeline
var obj = { method: 'feed', link: 'https://apps.facebook.com/agarman/?ftext=1', picture: 'http://my.domain/pic.png', name: 'Im a word hero!', caption: 'My word in AGAR MAN is the coolest', description: 'I played the word AWESOME for 36 points, + using the letters AEMORWY. Can you do better?', }; FB.ui(obj, callback);
Step : Scores
More on scores
Keep track of scores locally Build and feature a leaderboard Consider periodic score resets
DELETE https://graph.facebook.com/APP_ID/scores &access_token=APP_ACCESS_TOKEN
Step : Achievements
Achievements
1. Write an Open Graph web page for your resource
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# fbpayment:http://ogp.me/ns/fb/game#"> <meta property="fb:app_id" content="YOUR_APP_ID" > <meta property="og:type" content="game.achievement" > <meta property="og:url" content="http://apps.facebook.com/YOURAPP/ACHIEVEMENTPATH" > <meta property="og:title" content="Achievement Title" > <meta property="og:description" content="Longer description" > <meta property="og:image" content="IMAGE_URL_50x50px" > <meta property="game:points" content="NUMBER IN [1-1000]" > </head>
Achievements
1. Write an Open Graph web page for your resource 2. Register your achievement
Achievements
1. Write an Open Graph web page for your resource 2. Register your achievement 3. Grant your achievement to a user
POST https://graph.facebook.com/USER_ID/achievements? access_token=APP_ACCESS_TOKEN& achievement=ACHIEVEMENT_URL
Learn More!
developers.facebook.com Developer blog facebook.stackoverow.com