"introduction open graph and facebook platform" - facebook developer garage bangalore
DESCRIPTION
Shreyas, NH7.in presentation on introduction to open graph and his experience's working with FB PlatformTRANSCRIPT
FB OPEN GRAPH APISimplicity wrapped in layers of cheese
Sunday 10 October 2010
HUNDRED POUND GORILLACant ignore it!
Sunday 10 October 2010
INTEGRATIONTwo way - Meaningful - Useful
Sunday 10 October 2010
Login Taste Social Connections
Share
Sunday 10 October 2010
Login
FBConnectJS-API
Desktop Mobile Web
Sunday 10 October 2010
FB-CONNECTJS/ Iframe/ Automagic
Sunday 10 October 2010
You
FB.init({appId: 'your app id',status: true, cookie: true, xfbml: true});
Authenticate
Set cookie
Check Cookie.Refresh Page.
iFrame
Sunday 10 October 2010
LOOK AT THE CODE?
Sunday 10 October 2010
PROBLEMSOh its got issues!
Sunday 10 October 2010
YOU CAN GO COOKIE!3rd party cookies can cause issues
Sunday 10 October 2010
MAKE SURE YOU TRACK ACCESS ID
Things time out, catch events and tell your user.
Sunday 10 October 2010
VERSIONS OF FB-CONNECT ARE A PAIN
Beta - New SDK - Old SDK - SDK before crucification and so forth
Sunday 10 October 2010
BUGS http://bugs.developers.facebook.com/show_bug.cgi?id=10418
Sunday 10 October 2010
DESKTOPEmbedding a browser - kinda boring
Sunday 10 October 2010
MOBILE WEBProbably the simplest and the most fun way
Sunday 10 October 2010
Your application
Redirect to FBhttps://graph.facebook.com/oauth/
authorize?
Ask FB for access token
https://graph.facebook.com/oauth/access_token?
client_id=...& redirect_uri=http://www.example.com/callback& client_secret=...&
Sunday 10 October 2010
TASTEYou now have the access token!
To the graph we go!
Sunday 10 October 2010
Likes
Music
Movies
Books
http://graph.facebook.com/me/<stuff>
Events
Sunday 10 October 2010
SAMPLE RESPONSE
{ "data": [ { "name": "Shankar Ehsaan Loy", "category": "Musicians", "id": "16704234695", "created_time": "2010-08-10T06:24:59+0000" }, { "name": "Something Relevant", "category": "Musicians", "id": "19374649864", "created_time": "2010-05-07T13:33:31+0000" }}
Sunday 10 October 2010
SOCIAL CONNECTIONSKeep your friends close, keep your fb friends closer.
Sunday 10 October 2010
http://graph.facebook.com/me/friends
{ "data": [ { "name": "Mary Colvig", "id": "221219" }, { "name": "Sai Ramachandran", "id": "818982" }, { "name": "Sandeep Satish", "id": "824889" }}
Sunday 10 October 2010
SHAREPush - Pull
Sunday 10 October 2010
SHARE AUTOMATICALLY
curl -F 'access_token=...' \ -F 'message=Hello, Arjun. I like this new API.' \ https://graph.facebook.com/arjun/feed
Sunday 10 October 2010
NH7 A Case study into awesomeness (Modesty always failed me)
Sunday 10 October 2010
THE FUTUREFeature requests
Sunday 10 October 2010
RECOMMEND CONTENT WITHIN FACEBOOK
Post as application. Spam check?
Sunday 10 October 2010
OFFLINE COULD BE MORE POWERFUL
Sunday 10 October 2010
THANKShttp://nh7.in
http://twitter.com/sshreyashttp://nh7.in/sshreyas
Sunday 10 October 2010