"Facebook Platform Best Practices" - Facebook Developer Garage Bangalore
Facebook Garage / Open Graph Presentation
description
Transcript of Facebook Garage / Open Graph Presentation
Building on the Open Graph
Tuesday, 22 May 12
Tuesday, 22 May 12
A Quick Tour
Tuesday, 22 May 12
Your App
Tuesday, 22 May 12
Your App
Tuesday, 22 May 12
Your App
Tuesday, 22 May 12
TickerNewsfeed
User’s Timeline
Your App
Tuesday, 22 May 12
COOK RECIPE
ACTION OBJECTUSER
!. DEFINE YOUR ACTIONS AND OBJECTS
Tuesday, 22 May 12
!. DEFINE YOUR ACTIONS AND OBJECTS
Tuesday, 22 May 12
". DEFINE YOUR TIMELINE AGGREGATIONS
Tuesday, 22 May 12
". DEFINE YOUR TIMELINE AGGREGATIONS
Tuesday, 22 May 12
#. MARKUP AND EXPOSE YOUR OBJECTS
Tuesday, 22 May 12
curl -F 'access_token=<access_token>' -F 'recipe=http://myapp.com/object_id' \ 'https://graph.facebook.com/me/myapp:action'
$. PUBLISH ACTIONS
Tuesday, 22 May 12
curl -F 'access_token=<access_token>' -F 'recipe=http://myapp.com/object_id' \ 'https://graph.facebook.com/me/myapp:action'
OBJECT URL
ACTION NAME
$. PUBLISH ACTIONS
Tuesday, 22 May 12
Let’s Hack...
Tuesday, 22 May 12
Object References
COOK RECIPE
Cookies
Tuesday, 22 May 12
INGREDIENT
Pecan
INGREDIENT
Chocolate
INGREDIENT
Egg
Object References
COOK RECIPE
Cookies
Tuesday, 22 May 12
Object References
ARTICLEREAD
Tuesday, 22 May 12
SECTION
Business
AUTHOR
Mr Journalist
TAGS
Credit Crunch
Object References
ARTICLEREAD
Tuesday, 22 May 12
SECTION
Business
AUTHOR
Mr Journalist
TAGS
Credit Crunch
Object References
ARTICLEREAD
Tuesday, 22 May 12
SECTION
Business
AUTHOR
Mr Journalist
TAGS
Credit Crunch
Object References
ARTICLEREAD
Tuesday, 22 May 12
SECTION
Business
AUTHOR
Mr Journalist
TAGS
Credit Crunch
Object References
ARTICLEREAD
Tuesday, 22 May 12
Action References
RECIPE
Cookies
COOK
Tuesday, 22 May 12
Action References
RECIPE
Cookies
OCCATION
Birthday
Suchef
COOK
Tuesday, 22 May 12
curl -F 'access_token=<access_token>' -F 'recipe=http://myapp.com/object_id' \ 'place=360804836705’ \ 'https://graph.facebook.com/me/appname:cook'
Tagging Places
Tuesday, 22 May 12
curl -F 'access_token=<access_token>' -F 'recipe=http://myapp.com/object_id' \ 'place=360804836705’ \ 'https://graph.facebook.com/me/appname:cook'
Place ID
Tagging Places
Tuesday, 22 May 12
!. Social By Design
Social can’t just be added on at the end
Tuesday, 22 May 12
". Build for the OpenGraph now
Opportunity to own your vertical
Tuesday, 22 May 12
#. Get your data right
Model your data
Add context through references
Create amazing Aggregations
Tuesday, 22 May 12
$. Build products which exist over time
Add to a user’s Identity
Distribution is tied to reputation
Think beyond ‘campaigns’
Tuesday, 22 May 12
%. Focus on Mobileespecially HTML%
Facebook Platform for Mobile
Tuesday, 22 May 12
One API, More Distribution, More Traffic
The Open Graph
Tuesday, 22 May 12
Simon Cross listened to Poor Souls on Spotify
Simon Cross listened to songs on Spotify
News Feed Stories
Ticker Stories
Timeline Aggregations
Add to Timeline
One API, More Distribution, More Traffic
The Open Graph
Tuesday, 22 May 12
developers.facebook.com
Tuesday, 22 May 12
InsightsTranslations
Next:
Tuesday, 22 May 12
Open Graph Insights
Tuesday, 22 May 12
AuthInsights
Tuesday, 22 May 12
AuthInsights
Tuesday, 22 May 12
Translations
Tuesday, 22 May 12
Enable multiplelanguages
TranslatingActions
Tuesday, 22 May 12
Enable multiplelanguages
TranslatingActions
Tuesday, 22 May 12
Translating Objects
Tuesday, 22 May 12
<html> <head prefix="og: http://ogp.me/ns#"> <meta property="og:locale" content="en_GB" /> <meta property="og:locale:alternate" content="fr_FR" /> <meta property="og:locale:alternate" content="de_DE" /> <meta property="og:locale:alternate" content="tr_RU" /> ...
Translating Objects
Tuesday, 22 May 12
<html> <head prefix="og: http://ogp.me/ns#"> <meta property="og:locale" content="en_GB" /> <meta property="og:locale:alternate" content="fr_FR" /> <meta property="og:locale:alternate" content="de_DE" /> <meta property="og:locale:alternate" content="tr_RU" /> ...
GET http://YOUR_OBJECT_URL?fb_locale=fr_FRGET http://YOUR_OBJECT_URL?fb_locale=de_DEGET http://YOUR_OBJECT_URL?fb_locale=tr_RU
Translating Objects
Tuesday, 22 May 12
<html> <head prefix="og: http://ogp.me/ns#"> <meta property="og:locale" content="en_GB" /> <meta property="og:locale:alternate" content="fr_FR" /> <meta property="og:locale:alternate" content="de_DE" /> <meta property="og:locale:alternate" content="tr_RU" /> ...
GET http://YOUR_OBJECT_URL?fb_locale=fr_FRGET http://YOUR_OBJECT_URL?fb_locale=de_DEGET http://YOUR_OBJECT_URL?fb_locale=tr_RU
... <meta property="og:title" content="{RUSSIAN_TITLE}" /> <meta property="og:description" content="{RUSSIAN_DESC}" /> ...
Translating Objects
Tuesday, 22 May 12
(c) 2009 Facebook, Inc. or its licensors. "Facebook" is a registered trademark of Facebook, Inc.. All rights reserved. 1.0
Tuesday, 22 May 12