SlideShare uma empresa Scribd logo
1 de 28
Baixar para ler offline
FB OPEN GRAPH API
                          Simplicity wrapped in layers of cheese




Sunday 10 October 2010
HUNDRED POUND GORILLA
                         Cant ignore it!

Sunday 10 October 2010
INTEGRATION
                         Two way - Meaningful - Useful

Sunday 10 October 2010
Social
                Login    Taste                 Share
                                 Connections




Sunday 10 October 2010
Login




                FBConnect
                            Desktop   Mobile Web
                  JS-API




Sunday 10 October 2010
FB-CONNECT
                          JS/ Iframe/ Automagic




Sunday 10 October 2010
Check Cookie.
                 Refresh Page.
                                                        Facebook
                                              iFrame




                         You
                                                       Authenticate

             FB.init({appId: 'your app id',
             status: true,
             cookie: true,
             xfbml: true});



                                                        Set cookie




Sunday 10 October 2010
LOOK AT THE CODE?




Sunday 10 October 2010
PROBLEMS
                         Oh 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
DESKTOP
                         Embedding a browser - kinda boring




Sunday 10 October 2010
MOBILE WEB
                         Probably the simplest and the most fun way




Sunday 10 October 2010
Redirect to FB
                                https://graph.facebook.com/oauth/
                                           authorize?




             Your application


                                 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
TASTE
                         You now have the access token!
                              To the graph we go!




Sunday 10 October 2010
http://graph.facebook.com/me/<stuff>

                                           Likes

                                           Music

                                          Movies

                                           Books

                                          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 CONNECTIONS
                   Keep 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
SHARE
                         Push - 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 FUTURE
                          Feature 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
THANKS
                                 http://nh7.in
                         http://twitter.com/sshreyas
                            http://nh7.in/sshreyas




Sunday 10 October 2010

Mais conteúdo relacionado

Destaque

Open Graph & oEmbed | facebook的開放社交關係圖與其他網站的oEmbed
Open Graph & oEmbed | facebook的開放社交關係圖與其他網站的oEmbedOpen Graph & oEmbed | facebook的開放社交關係圖與其他網站的oEmbed
Open Graph & oEmbed | facebook的開放社交關係圖與其他網站的oEmbedVeronica Lin
 
Facebook Open Graph Api
Facebook Open Graph ApiFacebook Open Graph Api
Facebook Open Graph ApiSimon Li
 
LiveWorld POV for FaceBook's Timeline API
LiveWorld POV for FaceBook's Timeline APILiveWorld POV for FaceBook's Timeline API
LiveWorld POV for FaceBook's Timeline APILiveWorld
 
Graph API - Facebook Developer Garage Taipei
Graph API - Facebook Developer Garage TaipeiGraph API - Facebook Developer Garage Taipei
Graph API - Facebook Developer Garage TaipeiCardinal Blue Software
 
Facebook open graph Presentation
Facebook open graph PresentationFacebook open graph Presentation
Facebook open graph PresentationIncheol Baek
 
Gamify with SVG / Canvas over Facebook Open Graph
Gamify with SVG / Canvas over Facebook Open GraphGamify with SVG / Canvas over Facebook Open Graph
Gamify with SVG / Canvas over Facebook Open GraphPietro Polsinelli
 
Facebook open graph explained
Facebook open graph explainedFacebook open graph explained
Facebook open graph explainedSaint Social
 
Facebook Open Graph Protocol and Graph API (NoVA Code Camp 2010.1)
Facebook Open Graph Protocol and Graph API (NoVA Code Camp 2010.1)Facebook Open Graph Protocol and Graph API (NoVA Code Camp 2010.1)
Facebook Open Graph Protocol and Graph API (NoVA Code Camp 2010.1)Chris Busse
 
Facebook Open Graph Overview
Facebook Open Graph OverviewFacebook Open Graph Overview
Facebook Open Graph OverviewCory OBrien
 
Getting started with Facebook OpenGraph API
Getting started with Facebook OpenGraph APIGetting started with Facebook OpenGraph API
Getting started with Facebook OpenGraph APILynn Langit
 
Introduction to Facebook Graph API and OAuth 2
Introduction to Facebook Graph API and OAuth 2Introduction to Facebook Graph API and OAuth 2
Introduction to Facebook Graph API and OAuth 2Thai Pangsakulyanont
 
Facebook Login & Open Graph Introduction
Facebook Login & Open Graph IntroductionFacebook Login & Open Graph Introduction
Facebook Login & Open Graph IntroductionEric Ping
 
Facebook graph api
Facebook graph apiFacebook graph api
Facebook graph apiFagner Moura
 
Enhance existing REST APIs (e.g. Facebook Graph API) with code completion us...
Enhance existing REST APIs  (e.g. Facebook Graph API) with code completion us...Enhance existing REST APIs  (e.g. Facebook Graph API) with code completion us...
Enhance existing REST APIs (e.g. Facebook Graph API) with code completion us...johannes_fiala
 
Facebook Open Graph API and How To Use It
Facebook Open Graph API and How To Use ItFacebook Open Graph API and How To Use It
Facebook Open Graph API and How To Use ItAayush Shrestha
 
Facebook Open Graph meta tags
Facebook Open Graph meta tagsFacebook Open Graph meta tags
Facebook Open Graph meta tagsStudioDeOorzaak
 
Facebook Open Graph API
Facebook Open Graph APIFacebook Open Graph API
Facebook Open Graph APIColin Smillie
 
Facebook ( Open ) Graph and the Semantic Web
Facebook ( Open ) Graph and the Semantic WebFacebook ( Open ) Graph and the Semantic Web
Facebook ( Open ) Graph and the Semantic WebMatteo Brunati
 
Facebook Open Graph and the Future of Personalization
Facebook Open Graph and the Future of PersonalizationFacebook Open Graph and the Future of Personalization
Facebook Open Graph and the Future of PersonalizationRob Gonda
 

Destaque (20)

Open Graph & oEmbed | facebook的開放社交關係圖與其他網站的oEmbed
Open Graph & oEmbed | facebook的開放社交關係圖與其他網站的oEmbedOpen Graph & oEmbed | facebook的開放社交關係圖與其他網站的oEmbed
Open Graph & oEmbed | facebook的開放社交關係圖與其他網站的oEmbed
 
Facebook Open Graph Api
Facebook Open Graph ApiFacebook Open Graph Api
Facebook Open Graph Api
 
Facebook Open Graph Protocol
Facebook Open Graph ProtocolFacebook Open Graph Protocol
Facebook Open Graph Protocol
 
LiveWorld POV for FaceBook's Timeline API
LiveWorld POV for FaceBook's Timeline APILiveWorld POV for FaceBook's Timeline API
LiveWorld POV for FaceBook's Timeline API
 
Graph API - Facebook Developer Garage Taipei
Graph API - Facebook Developer Garage TaipeiGraph API - Facebook Developer Garage Taipei
Graph API - Facebook Developer Garage Taipei
 
Facebook open graph Presentation
Facebook open graph PresentationFacebook open graph Presentation
Facebook open graph Presentation
 
Gamify with SVG / Canvas over Facebook Open Graph
Gamify with SVG / Canvas over Facebook Open GraphGamify with SVG / Canvas over Facebook Open Graph
Gamify with SVG / Canvas over Facebook Open Graph
 
Facebook open graph explained
Facebook open graph explainedFacebook open graph explained
Facebook open graph explained
 
Facebook Open Graph Protocol and Graph API (NoVA Code Camp 2010.1)
Facebook Open Graph Protocol and Graph API (NoVA Code Camp 2010.1)Facebook Open Graph Protocol and Graph API (NoVA Code Camp 2010.1)
Facebook Open Graph Protocol and Graph API (NoVA Code Camp 2010.1)
 
Facebook Open Graph Overview
Facebook Open Graph OverviewFacebook Open Graph Overview
Facebook Open Graph Overview
 
Getting started with Facebook OpenGraph API
Getting started with Facebook OpenGraph APIGetting started with Facebook OpenGraph API
Getting started with Facebook OpenGraph API
 
Introduction to Facebook Graph API and OAuth 2
Introduction to Facebook Graph API and OAuth 2Introduction to Facebook Graph API and OAuth 2
Introduction to Facebook Graph API and OAuth 2
 
Facebook Login & Open Graph Introduction
Facebook Login & Open Graph IntroductionFacebook Login & Open Graph Introduction
Facebook Login & Open Graph Introduction
 
Facebook graph api
Facebook graph apiFacebook graph api
Facebook graph api
 
Enhance existing REST APIs (e.g. Facebook Graph API) with code completion us...
Enhance existing REST APIs  (e.g. Facebook Graph API) with code completion us...Enhance existing REST APIs  (e.g. Facebook Graph API) with code completion us...
Enhance existing REST APIs (e.g. Facebook Graph API) with code completion us...
 
Facebook Open Graph API and How To Use It
Facebook Open Graph API and How To Use ItFacebook Open Graph API and How To Use It
Facebook Open Graph API and How To Use It
 
Facebook Open Graph meta tags
Facebook Open Graph meta tagsFacebook Open Graph meta tags
Facebook Open Graph meta tags
 
Facebook Open Graph API
Facebook Open Graph APIFacebook Open Graph API
Facebook Open Graph API
 
Facebook ( Open ) Graph and the Semantic Web
Facebook ( Open ) Graph and the Semantic WebFacebook ( Open ) Graph and the Semantic Web
Facebook ( Open ) Graph and the Semantic Web
 
Facebook Open Graph and the Future of Personalization
Facebook Open Graph and the Future of PersonalizationFacebook Open Graph and the Future of Personalization
Facebook Open Graph and the Future of Personalization
 

Semelhante a "Introduction Open Graph and Facebook Platform" - Facebook Developer Garage Bangalore

Snowflake in music
Snowflake in musicSnowflake in music
Snowflake in musicErik Duval
 
From Singapore to Slovenia
From Singapore to SloveniaFrom Singapore to Slovenia
From Singapore to SloveniaSayanee Basu
 
Sencha Touch beta — Amazing Mobile Web Apps with HTML5, CSS3 & JavaScript
Sencha Touch beta — Amazing Mobile Web Apps with HTML5, CSS3 & JavaScriptSencha Touch beta — Amazing Mobile Web Apps with HTML5, CSS3 & JavaScript
Sencha Touch beta — Amazing Mobile Web Apps with HTML5, CSS3 & JavaScriptDavid Kaneda
 
Advanced android
Advanced androidAdvanced android
Advanced androiddonnfelker
 
Muruca: Linked Data in Art History
Muruca: Linked Data in Art HistoryMuruca: Linked Data in Art History
Muruca: Linked Data in Art HistoryMichele Barbera
 
Creative Commons: What Every Educator Needs to Know
Creative Commons: What Every Educator Needs to KnowCreative Commons: What Every Educator Needs to Know
Creative Commons: What Every Educator Needs to KnowRodd Lucier
 
WordPress: Turn Your Website into a Social Media Engine
WordPress: Turn Your Website into a Social Media EngineWordPress: Turn Your Website into a Social Media Engine
WordPress: Turn Your Website into a Social Media EngineWhole Brain Group, LLC
 
Bode Technology Retreat!
Bode Technology Retreat!Bode Technology Retreat!
Bode Technology Retreat!Terri Sallee
 
Ram social media seminar
Ram social media seminarRam social media seminar
Ram social media seminarJess Sloss
 
Human APIs - expanding the mobile web or are robots coming to JavaScript?
Human APIs - expanding the mobile web or are robots coming to JavaScript? Human APIs - expanding the mobile web or are robots coming to JavaScript?
Human APIs - expanding the mobile web or are robots coming to JavaScript? Nikolai Onken
 
2minutes spreading our roots
2minutes spreading our roots2minutes spreading our roots
2minutes spreading our rootsChris Harbeck
 
Opening up the Social Web - Standards that are bridging the Islands
Opening up the Social Web - Standards that are bridging the Islands Opening up the Social Web - Standards that are bridging the Islands
Opening up the Social Web - Standards that are bridging the Islands Bastian Hofmann
 
Melvin Vivas' talk at Phil. Tech Startups Meetup
Melvin Vivas' talk at Phil. Tech Startups MeetupMelvin Vivas' talk at Phil. Tech Startups Meetup
Melvin Vivas' talk at Phil. Tech Startups MeetupMelvin Dave Vivas
 
MongoDB on Rails (and Ruby)
MongoDB on Rails (and Ruby)MongoDB on Rails (and Ruby)
MongoDB on Rails (and Ruby)jan_mindmatters
 
"Designing School 2.0 - Inspired by Agile Learners" - Christian Long keynote ...
"Designing School 2.0 - Inspired by Agile Learners" - Christian Long keynote ..."Designing School 2.0 - Inspired by Agile Learners" - Christian Long keynote ...
"Designing School 2.0 - Inspired by Agile Learners" - Christian Long keynote ...Christian Long
 

Semelhante a "Introduction Open Graph and Facebook Platform" - Facebook Developer Garage Bangalore (17)

Snowflake in music
Snowflake in musicSnowflake in music
Snowflake in music
 
CSS Bloat!
CSS Bloat!CSS Bloat!
CSS Bloat!
 
From Singapore to Slovenia
From Singapore to SloveniaFrom Singapore to Slovenia
From Singapore to Slovenia
 
Sencha Touch beta — Amazing Mobile Web Apps with HTML5, CSS3 & JavaScript
Sencha Touch beta — Amazing Mobile Web Apps with HTML5, CSS3 & JavaScriptSencha Touch beta — Amazing Mobile Web Apps with HTML5, CSS3 & JavaScript
Sencha Touch beta — Amazing Mobile Web Apps with HTML5, CSS3 & JavaScript
 
Advanced android
Advanced androidAdvanced android
Advanced android
 
Muruca: Linked Data in Art History
Muruca: Linked Data in Art HistoryMuruca: Linked Data in Art History
Muruca: Linked Data in Art History
 
Creative Commons: What Every Educator Needs to Know
Creative Commons: What Every Educator Needs to KnowCreative Commons: What Every Educator Needs to Know
Creative Commons: What Every Educator Needs to Know
 
WordPress: Turn Your Website into a Social Media Engine
WordPress: Turn Your Website into a Social Media EngineWordPress: Turn Your Website into a Social Media Engine
WordPress: Turn Your Website into a Social Media Engine
 
Bode Technology Retreat!
Bode Technology Retreat!Bode Technology Retreat!
Bode Technology Retreat!
 
Ram social media seminar
Ram social media seminarRam social media seminar
Ram social media seminar
 
Human APIs - expanding the mobile web or are robots coming to JavaScript?
Human APIs - expanding the mobile web or are robots coming to JavaScript? Human APIs - expanding the mobile web or are robots coming to JavaScript?
Human APIs - expanding the mobile web or are robots coming to JavaScript?
 
2minutes spreading our roots
2minutes spreading our roots2minutes spreading our roots
2minutes spreading our roots
 
Opening up the Social Web - Standards that are bridging the Islands
Opening up the Social Web - Standards that are bridging the Islands Opening up the Social Web - Standards that are bridging the Islands
Opening up the Social Web - Standards that are bridging the Islands
 
Arquitetura: chega de mesmice
Arquitetura: chega de mesmiceArquitetura: chega de mesmice
Arquitetura: chega de mesmice
 
Melvin Vivas' talk at Phil. Tech Startups Meetup
Melvin Vivas' talk at Phil. Tech Startups MeetupMelvin Vivas' talk at Phil. Tech Startups Meetup
Melvin Vivas' talk at Phil. Tech Startups Meetup
 
MongoDB on Rails (and Ruby)
MongoDB on Rails (and Ruby)MongoDB on Rails (and Ruby)
MongoDB on Rails (and Ruby)
 
"Designing School 2.0 - Inspired by Agile Learners" - Christian Long keynote ...
"Designing School 2.0 - Inspired by Agile Learners" - Christian Long keynote ..."Designing School 2.0 - Inspired by Agile Learners" - Christian Long keynote ...
"Designing School 2.0 - Inspired by Agile Learners" - Christian Long keynote ...
 

Mais de Vijay Rayapati

Botmetric Product Design Process
Botmetric Product Design ProcessBotmetric Product Design Process
Botmetric Product Design ProcessVijay Rayapati
 
Lessons learned scaling big data in cloud
Lessons learned   scaling big data in cloudLessons learned   scaling big data in cloud
Lessons learned scaling big data in cloudVijay Rayapati
 
Scalable load testing using jmeter in cloud
Scalable load testing using jmeter in cloudScalable load testing using jmeter in cloud
Scalable load testing using jmeter in cloudVijay Rayapati
 
Big Data and Hadoop in Cloud - Leveraging Amazon EMR
Big Data and Hadoop in Cloud - Leveraging Amazon EMRBig Data and Hadoop in Cloud - Leveraging Amazon EMR
Big Data and Hadoop in Cloud - Leveraging Amazon EMRVijay Rayapati
 
Building Culture at Kuliza
Building Culture at KulizaBuilding Culture at Kuliza
Building Culture at KulizaVijay Rayapati
 
Introduction to cloud computing - za garage talks
Introduction to cloud computing -  za garage talksIntroduction to cloud computing -  za garage talks
Introduction to cloud computing - za garage talksVijay Rayapati
 
"Leveraging Virality aspects in Facebook Platform" -- Facebook Developer Gar...
"Leveraging Virality aspects in Facebook Platform" --  Facebook Developer Gar..."Leveraging Virality aspects in Facebook Platform" --  Facebook Developer Gar...
"Leveraging Virality aspects in Facebook Platform" -- Facebook Developer Gar...Vijay Rayapati
 
"Smart Hiring App on Facebook" - Facebook Developer Garage Bangalore
"Smart Hiring App on Facebook"  -  Facebook Developer Garage Bangalore"Smart Hiring App on Facebook"  -  Facebook Developer Garage Bangalore
"Smart Hiring App on Facebook" - Facebook Developer Garage BangaloreVijay Rayapati
 
"Facebook Platform Best Practices" - Facebook Developer Garage Bangalore
"Facebook Platform Best Practices" -  Facebook Developer Garage Bangalore"Facebook Platform Best Practices" -  Facebook Developer Garage Bangalore
"Facebook Platform Best Practices" - Facebook Developer Garage BangaloreVijay Rayapati
 
Performance Tuning Web Apps - The Need For Speed
Performance Tuning Web Apps - The Need For SpeedPerformance Tuning Web Apps - The Need For Speed
Performance Tuning Web Apps - The Need For SpeedVijay Rayapati
 
How Cafe Coffee Day Handled Their Online Crisis
How Cafe Coffee Day Handled Their Online CrisisHow Cafe Coffee Day Handled Their Online Crisis
How Cafe Coffee Day Handled Their Online CrisisVijay Rayapati
 
Nasscom Product Conclave 2009 - Feedback collected using Twitter
Nasscom Product Conclave 2009 - Feedback collected using TwitterNasscom Product Conclave 2009 - Feedback collected using Twitter
Nasscom Product Conclave 2009 - Feedback collected using TwitterVijay Rayapati
 
Social Media Engagement
Social Media EngagementSocial Media Engagement
Social Media EngagementVijay Rayapati
 

Mais de Vijay Rayapati (14)

Botmetric Product Design Process
Botmetric Product Design ProcessBotmetric Product Design Process
Botmetric Product Design Process
 
Lessons learned scaling big data in cloud
Lessons learned   scaling big data in cloudLessons learned   scaling big data in cloud
Lessons learned scaling big data in cloud
 
Scalable load testing using jmeter in cloud
Scalable load testing using jmeter in cloudScalable load testing using jmeter in cloud
Scalable load testing using jmeter in cloud
 
Big Data and Hadoop in Cloud - Leveraging Amazon EMR
Big Data and Hadoop in Cloud - Leveraging Amazon EMRBig Data and Hadoop in Cloud - Leveraging Amazon EMR
Big Data and Hadoop in Cloud - Leveraging Amazon EMR
 
Building Culture at Kuliza
Building Culture at KulizaBuilding Culture at Kuliza
Building Culture at Kuliza
 
Introduction to cloud computing - za garage talks
Introduction to cloud computing -  za garage talksIntroduction to cloud computing -  za garage talks
Introduction to cloud computing - za garage talks
 
"Leveraging Virality aspects in Facebook Platform" -- Facebook Developer Gar...
"Leveraging Virality aspects in Facebook Platform" --  Facebook Developer Gar..."Leveraging Virality aspects in Facebook Platform" --  Facebook Developer Gar...
"Leveraging Virality aspects in Facebook Platform" -- Facebook Developer Gar...
 
"Smart Hiring App on Facebook" - Facebook Developer Garage Bangalore
"Smart Hiring App on Facebook"  -  Facebook Developer Garage Bangalore"Smart Hiring App on Facebook"  -  Facebook Developer Garage Bangalore
"Smart Hiring App on Facebook" - Facebook Developer Garage Bangalore
 
"Facebook Platform Best Practices" - Facebook Developer Garage Bangalore
"Facebook Platform Best Practices" -  Facebook Developer Garage Bangalore"Facebook Platform Best Practices" -  Facebook Developer Garage Bangalore
"Facebook Platform Best Practices" - Facebook Developer Garage Bangalore
 
Performance Tuning Web Apps - The Need For Speed
Performance Tuning Web Apps - The Need For SpeedPerformance Tuning Web Apps - The Need For Speed
Performance Tuning Web Apps - The Need For Speed
 
How Cafe Coffee Day Handled Their Online Crisis
How Cafe Coffee Day Handled Their Online CrisisHow Cafe Coffee Day Handled Their Online Crisis
How Cafe Coffee Day Handled Their Online Crisis
 
Giza Page Hiring
Giza Page HiringGiza Page Hiring
Giza Page Hiring
 
Nasscom Product Conclave 2009 - Feedback collected using Twitter
Nasscom Product Conclave 2009 - Feedback collected using TwitterNasscom Product Conclave 2009 - Feedback collected using Twitter
Nasscom Product Conclave 2009 - Feedback collected using Twitter
 
Social Media Engagement
Social Media EngagementSocial Media Engagement
Social Media Engagement
 

"Introduction Open Graph and Facebook Platform" - Facebook Developer Garage Bangalore

  • 1. FB OPEN GRAPH API Simplicity wrapped in layers of cheese Sunday 10 October 2010
  • 2. HUNDRED POUND GORILLA Cant ignore it! Sunday 10 October 2010
  • 3. INTEGRATION Two way - Meaningful - Useful Sunday 10 October 2010
  • 4. Social Login Taste Share Connections Sunday 10 October 2010
  • 5. Login FBConnect Desktop Mobile Web JS-API Sunday 10 October 2010
  • 6. FB-CONNECT JS/ Iframe/ Automagic Sunday 10 October 2010
  • 7. Check Cookie. Refresh Page. Facebook iFrame You Authenticate FB.init({appId: 'your app id', status: true, cookie: true, xfbml: true}); Set cookie Sunday 10 October 2010
  • 8. LOOK AT THE CODE? Sunday 10 October 2010
  • 9. PROBLEMS Oh its got issues! Sunday 10 October 2010
  • 10. YOU CAN GO COOKIE! 3rd party cookies can cause issues Sunday 10 October 2010
  • 11. MAKE SURE YOU TRACK ACCESS ID Things time out, catch events and tell your user. Sunday 10 October 2010
  • 12. VERSIONS OF FB-CONNECT ARE A PAIN Beta - New SDK - Old SDK - SDK before crucification and so forth Sunday 10 October 2010
  • 13. BUGS http://bugs.developers.facebook.com/show_bug.cgi?id=10418 Sunday 10 October 2010
  • 14. DESKTOP Embedding a browser - kinda boring Sunday 10 October 2010
  • 15. MOBILE WEB Probably the simplest and the most fun way Sunday 10 October 2010
  • 16. Redirect to FB https://graph.facebook.com/oauth/ authorize? Your application 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
  • 17. TASTE You now have the access token! To the graph we go! Sunday 10 October 2010
  • 18. http://graph.facebook.com/me/<stuff> Likes Music Movies Books Events Sunday 10 October 2010
  • 19. 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
  • 20. SOCIAL CONNECTIONS Keep your friends close, keep your fb friends closer. Sunday 10 October 2010
  • 21. 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
  • 22. SHARE Push - Pull Sunday 10 October 2010
  • 23. 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
  • 24. NH7 A Case study into awesomeness (Modesty always failed me) Sunday 10 October 2010
  • 25. THE FUTURE Feature requests Sunday 10 October 2010
  • 26. RECOMMEND CONTENT WITHIN FACEBOOK Post as application. Spam check? Sunday 10 October 2010
  • 27. OFFLINE COULD BE MORE POWERFUL Sunday 10 October 2010
  • 28. THANKS http://nh7.in http://twitter.com/sshreyas http://nh7.in/sshreyas Sunday 10 October 2010