SlideShare a Scribd company logo
1 of 25
Download to read offline
Hack the Graph




giovedì 29 marzo 2012
Agenda
              1         The Open Graph Protocol

              2         Social Plugins

              3         Facebook Application Architecture

              4         Tools & sessione pratica

              5         Q&A



giovedì 29 marzo 2012
giovedì 29 marzo 2012
giovedì 29 marzo 2012
Canvas Page
                        Le apps all’interno di facebook sono
                        caricate su pagine di tipo “Canvas”

                        Bisogna impostare il Canvas URL dove
                        potete posizionare i vostri files html e
                        css.

                        Il Canvas URL viene caricato come
                        iFrame.

                        Le dimensioni standard da usare sono
                        760px (Fluid Canvas)




giovedì 29 marzo 2012
The Open Graph Protocol




      “At it’s core, the Open Graph Protocol is a specification for a set of meta tags
      you can use to markup your pages to tell us what type of real-world objects
      your page represents.”

giovedì 29 marzo 2012
Storia Open Graph Protocol
          Già nel 2008, Facebook ha lanciato Facebook Connect. Si tratta di quei piccoli blu
          pulsanti di "facebook" che vedete su siti web che consentono di commentare un
          post sul blog senza la necessità di registrarsi con un account particolare per quel
          sito.

          Facebook Connect permette alle persone di accedere a un sito esterno utilizzando
          il loro account di Facebook. E 'stato un grande successo e nell'arco di un anno
          aveva 100 milioni di utentiI. Nel mese di aprile del 2010, Facebook ha lanciato la sua
          "Open Graph" API.

          Ciò che questa piattaforma fa è del fantascientifico: collega qualsiasi sito della
          rete a Facebook. Si tratta di una nuova serie di strumenti di programmazione che
          permettono di ottenere informazioni dentro e fuori di facebook. In una sola
          settimana, il nuovo Open Graph plug-in sono stati trovati su 50.000 siti web.




giovedì 29 marzo 2012
The Open Graph Protocol
         Il protocollo denominato Open Graph di Facebook consente a qualsiasi pagina
         web di diventare un oggetto presente in un grafo sociale.

         Questo protocollo viene utilizzato da Facebook per consentire a qualsiasi
         pagina web di avere le stesse funzionalità di una pagina Facebook.

         Per trasformare le pagine web in oggetti grafici, è necessario aggiungere dei
         metadati di base ad una pagina web.

         Le quattro proprietà richieste per ogni pagina sono:


               *   og:title - Il titolo dell'oggetto come dovrebbe apparire all'interno del grafico;
               *   og:type - il tipo dell'oggetto, ad esempio, "film";
               *   og:image - l'URL di un'immagine che rappresenta l'oggetto all'interno del grafico;
               *   og:url - L'URL canonica dell'oggetto che verrà utilizzato come ID permanente nel grafico;




giovedì 29 marzo 2012
The Open Graph Protocol




giovedì 29 marzo 2012
Graph API




giovedì 29 marzo 2012
Open Graph Mechanics




          1.    User takes an action in the app, such as cook a recipe
          2.    App invokes a HTTP POST to the Graph API end-point /me/action:object=Object_URL
          3.    Facebook will crawl the object webpage, read its meta tags and connect the object
          to    the user via the action.
giovedì 29 marzo 2012
Actions & Objects

                             Le Actions sono iterazioni ad
                             alto livello la quale gli utenti
                             possono eseguire nella vostra
                             app.



                             Gli Objects rappresentano entità
                             che gli utenti possono agire nella
                             vostra app.




giovedì 29 marzo 2012
News Feed and Ticker




giovedì 29 marzo 2012
Timeline




giovedì 29 marzo 2012
Aggregations and Reports




giovedì 29 marzo 2012
Timeline views




giovedì 29 marzo 2012
giovedì 29 marzo 2012
Social Plugins


         Like Button    Send Button    Subscribe      Comments




   Recommendations       Like Box     Login Button    Registration




            Facepile    Live Stream   Activity Feed
giovedì 29 marzo 2012
Facebook Application Architecture




                        20’ LIVE SESSION !
               https://devcenter.heroku.com/articles/facebook-ruby
giovedì 29 marzo 2012
Authentication




giovedì 29 marzo 2012
Authentication - Permission




giovedì 29 marzo 2012
Tools & Sessione pratica
               Graph API Explorer


               Javascript Test Console


               Developer App


               Insights


               Access Token Tool


               Change Log


               Debugger


               fbrell


               Live Status


               Test User API




giovedì 29 marzo 2012
Q&A


giovedì 29 marzo 2012
References
              The Open Graph Protocol
              www.ogp.me


              The Technical decisions
              http://www.scribd.com/doc/30715288/The-Open-Graph-Protocol-Design-Decisions


              Platform Docs
              https://developers.facebook.com/docs/


              Tutorial
              https://developers.facebook.com/docs/opengraph/tutorial/


              Getting Started
              https://developers.facebook.com/docs/


              Facebook Application Architecture (facebook-ruby)
              https://devcenter.heroku.com/articles/facebook-ruby


              Social Plugins
              https://developers.facebook.com/docs/plugins/


              Facebook Platform Overview
              http://www.pluralsight-training.net/microsoft/courses/TableOfContents?courseName=fb-platform

giovedì 29 marzo 2012
THANKS!

        Ing. Guido Nardo
        Head of Innovation   @ ETC Engineering Srl
        founder              @ stealth startup NYC

        www.facebook.com/guido.nardo
        www.twitter.com/guidonardo
        www.linkedIn.com/in/guidonardo

        guido.nardo@gmail.com


giovedì 29 marzo 2012

More Related Content

Viewers also liked

MedicinMan December 2011
MedicinMan December 2011MedicinMan December 2011
MedicinMan December 2011Anup Soans
 
Report 40 under 40 EYL Athens
Report 40 under 40 EYL AthensReport 40 under 40 EYL Athens
Report 40 under 40 EYL AthensDimitris Tsingos
 
Brand Activation, Eastern Opera, Red Banner
Brand Activation, Eastern Opera, Red BannerBrand Activation, Eastern Opera, Red Banner
Brand Activation, Eastern Opera, Red BannerJubanashwa Mishra
 
Leveraging Rails to Build Facebook Apps
Leveraging Rails to Build Facebook AppsLeveraging Rails to Build Facebook Apps
Leveraging Rails to Build Facebook AppsDavid Keener
 
P2 12 Power of the atom lesson notes
P2 12 Power of the atom lesson notesP2 12 Power of the atom lesson notes
P2 12 Power of the atom lesson notesPaul Burgess
 
Organ donation by death prisoners
Organ donation by death prisonersOrgan donation by death prisoners
Organ donation by death prisonersRobert Chen
 
Content area read alouds
Content area read aloudsContent area read alouds
Content area read aloudsS Bryce Kozla
 
หลักสูตรการพัฒนาประสิทธิภาพการนำเสนอสินค้า
หลักสูตรการพัฒนาประสิทธิภาพการนำเสนอสินค้าหลักสูตรการพัฒนาประสิทธิภาพการนำเสนอสินค้า
หลักสูตรการพัฒนาประสิทธิภาพการนำเสนอสินค้าPik Lertsavetpong
 
Larry k - trail presentation
Larry k - trail presentationLarry k - trail presentation
Larry k - trail presentationTrailplan
 
Submit In-Class Presentation #3
Submit In-Class Presentation #3Submit In-Class Presentation #3
Submit In-Class Presentation #3tykl94
 
Bhajan-Prabhu Aa Ja
Bhajan-Prabhu Aa JaBhajan-Prabhu Aa Ja
Bhajan-Prabhu Aa JaMool Chand
 
Affaritaliani.it - 20
Affaritaliani.it - 20Affaritaliani.it - 20
Affaritaliani.it - 20Luca Spoldi
 
Louise d - trial presentation
Louise d - trial presentationLouise d - trial presentation
Louise d - trial presentationTrailplan
 
Studiu HR - Dezvoltare Durabila - Perspective Group
Studiu HR -  Dezvoltare Durabila -  Perspective GroupStudiu HR -  Dezvoltare Durabila -  Perspective Group
Studiu HR - Dezvoltare Durabila - Perspective GroupCorneliaPopa
 
Learningapps2
Learningapps2Learningapps2
Learningapps2skatelal
 
Iphone
IphoneIphone
Iphoneo3
 

Viewers also liked (20)

MedicinMan December 2011
MedicinMan December 2011MedicinMan December 2011
MedicinMan December 2011
 
Vendere con motori di ricerca e social network. Olos27102011
Vendere con motori di ricerca e social network. Olos27102011Vendere con motori di ricerca e social network. Olos27102011
Vendere con motori di ricerca e social network. Olos27102011
 
Report 40 under 40 EYL Athens
Report 40 under 40 EYL AthensReport 40 under 40 EYL Athens
Report 40 under 40 EYL Athens
 
Brand Activation, Eastern Opera, Red Banner
Brand Activation, Eastern Opera, Red BannerBrand Activation, Eastern Opera, Red Banner
Brand Activation, Eastern Opera, Red Banner
 
Leveraging Rails to Build Facebook Apps
Leveraging Rails to Build Facebook AppsLeveraging Rails to Build Facebook Apps
Leveraging Rails to Build Facebook Apps
 
P2 12 Power of the atom lesson notes
P2 12 Power of the atom lesson notesP2 12 Power of the atom lesson notes
P2 12 Power of the atom lesson notes
 
Organ donation by death prisoners
Organ donation by death prisonersOrgan donation by death prisoners
Organ donation by death prisoners
 
Durf je
Durf jeDurf je
Durf je
 
Elvis 1993
Elvis 1993Elvis 1993
Elvis 1993
 
Content area read alouds
Content area read aloudsContent area read alouds
Content area read alouds
 
หลักสูตรการพัฒนาประสิทธิภาพการนำเสนอสินค้า
หลักสูตรการพัฒนาประสิทธิภาพการนำเสนอสินค้าหลักสูตรการพัฒนาประสิทธิภาพการนำเสนอสินค้า
หลักสูตรการพัฒนาประสิทธิภาพการนำเสนอสินค้า
 
Larry k - trail presentation
Larry k - trail presentationLarry k - trail presentation
Larry k - trail presentation
 
Apply for Graduate Schemes - Strategies for success - Network Rail
Apply for Graduate Schemes - Strategies for success - Network Rail   Apply for Graduate Schemes - Strategies for success - Network Rail
Apply for Graduate Schemes - Strategies for success - Network Rail
 
Submit In-Class Presentation #3
Submit In-Class Presentation #3Submit In-Class Presentation #3
Submit In-Class Presentation #3
 
Bhajan-Prabhu Aa Ja
Bhajan-Prabhu Aa JaBhajan-Prabhu Aa Ja
Bhajan-Prabhu Aa Ja
 
Affaritaliani.it - 20
Affaritaliani.it - 20Affaritaliani.it - 20
Affaritaliani.it - 20
 
Louise d - trial presentation
Louise d - trial presentationLouise d - trial presentation
Louise d - trial presentation
 
Studiu HR - Dezvoltare Durabila - Perspective Group
Studiu HR -  Dezvoltare Durabila -  Perspective GroupStudiu HR -  Dezvoltare Durabila -  Perspective Group
Studiu HR - Dezvoltare Durabila - Perspective Group
 
Learningapps2
Learningapps2Learningapps2
Learningapps2
 
Iphone
IphoneIphone
Iphone
 

Similar to Facebook - Hack the Graph

Introduzione - Esercitazioni (18/19)
Introduzione - Esercitazioni (18/19)Introduzione - Esercitazioni (18/19)
Introduzione - Esercitazioni (18/19)Andrea Gorrini
 
1 Esercitazione: Introduzione + WordPress Parte 1
1 Esercitazione: Introduzione + WordPress Parte 11 Esercitazione: Introduzione + WordPress Parte 1
1 Esercitazione: Introduzione + WordPress Parte 1Andrea Gorrini
 
Strumenti Web2.0
Strumenti Web2.0Strumenti Web2.0
Strumenti Web2.0sidelab1
 
Strumenti Web2
Strumenti Web2Strumenti Web2
Strumenti Web2sidelab1
 
1 - Introduzione al corso 17/18
1 - Introduzione al corso 17/181 - Introduzione al corso 17/18
1 - Introduzione al corso 17/18Giuseppe Vizzari
 
14. Content sharing (ii)
14. Content sharing (ii)14. Content sharing (ii)
14. Content sharing (ii)Roberto Polillo
 
Laboratorio Internet: 1. Introduzione
Laboratorio Internet: 1. IntroduzioneLaboratorio Internet: 1. Introduzione
Laboratorio Internet: 1. IntroduzioneRoberto Polillo
 
08 - WordPress e il vostro blog
08 - WordPress e il vostro blog08 - WordPress e il vostro blog
08 - WordPress e il vostro blogGiuseppe Vizzari
 
9 - WordPress e il vostro blog - 16/17
9 - WordPress e il vostro blog - 16/179 - WordPress e il vostro blog - 16/17
9 - WordPress e il vostro blog - 16/17Giuseppe Vizzari
 
7. Applicazioni web e CMS
7. Applicazioni web e CMS7. Applicazioni web e CMS
7. Applicazioni web e CMSRoberto Polillo
 
1 - Introduzione al corso 16/17
1 - Introduzione al corso 16/17 1 - Introduzione al corso 16/17
1 - Introduzione al corso 16/17 Giuseppe Vizzari
 
9 - Wordpress e il vostro blog
9 - Wordpress e il vostro blog9 - Wordpress e il vostro blog
9 - Wordpress e il vostro blogGiuseppe Vizzari
 
B Human Progetti di Stage 2009
B Human Progetti di Stage 2009B Human Progetti di Stage 2009
B Human Progetti di Stage 2009B Human Srl
 
01 - Introduzione al Corso Strumenti e Applicazioni del Web - CdLM in TTC - 2...
01 - Introduzione al Corso Strumenti e Applicazioni del Web - CdLM in TTC - 2...01 - Introduzione al Corso Strumenti e Applicazioni del Web - CdLM in TTC - 2...
01 - Introduzione al Corso Strumenti e Applicazioni del Web - CdLM in TTC - 2...Giuseppe Vizzari
 
2 Esercitazione (18/19)
2 Esercitazione (18/19)2 Esercitazione (18/19)
2 Esercitazione (18/19)Andrea Gorrini
 
Smau Roma 2012 Mob App Camp put social in your app
Smau Roma 2012 Mob App Camp put social in your appSmau Roma 2012 Mob App Camp put social in your app
Smau Roma 2012 Mob App Camp put social in your appSMAU
 

Similar to Facebook - Hack the Graph (20)

Introduzione - Esercitazioni (18/19)
Introduzione - Esercitazioni (18/19)Introduzione - Esercitazioni (18/19)
Introduzione - Esercitazioni (18/19)
 
1 Esercitazione: Introduzione + WordPress Parte 1
1 Esercitazione: Introduzione + WordPress Parte 11 Esercitazione: Introduzione + WordPress Parte 1
1 Esercitazione: Introduzione + WordPress Parte 1
 
Strumenti Web2.0
Strumenti Web2.0Strumenti Web2.0
Strumenti Web2.0
 
Strumenti Web2
Strumenti Web2Strumenti Web2
Strumenti Web2
 
1 - Introduzione al corso 17/18
1 - Introduzione al corso 17/181 - Introduzione al corso 17/18
1 - Introduzione al corso 17/18
 
14. Content sharing (ii)
14. Content sharing (ii)14. Content sharing (ii)
14. Content sharing (ii)
 
Laboratorio Internet: 1. Introduzione
Laboratorio Internet: 1. IntroduzioneLaboratorio Internet: 1. Introduzione
Laboratorio Internet: 1. Introduzione
 
08 - WordPress e il vostro blog
08 - WordPress e il vostro blog08 - WordPress e il vostro blog
08 - WordPress e il vostro blog
 
9 - WordPress e il vostro blog - 16/17
9 - WordPress e il vostro blog - 16/179 - WordPress e il vostro blog - 16/17
9 - WordPress e il vostro blog - 16/17
 
7. Applicazioni web e CMS
7. Applicazioni web e CMS7. Applicazioni web e CMS
7. Applicazioni web e CMS
 
Sviluppare applicazioni Facebook
Sviluppare applicazioni FacebookSviluppare applicazioni Facebook
Sviluppare applicazioni Facebook
 
Corso giornalisti: "Uffici stampa e web 2.0"
Corso giornalisti: "Uffici stampa e web 2.0"Corso giornalisti: "Uffici stampa e web 2.0"
Corso giornalisti: "Uffici stampa e web 2.0"
 
7. Mashup
7. Mashup7. Mashup
7. Mashup
 
1 - Introduzione al corso 16/17
1 - Introduzione al corso 16/17 1 - Introduzione al corso 16/17
1 - Introduzione al corso 16/17
 
9 - Wordpress e il vostro blog
9 - Wordpress e il vostro blog9 - Wordpress e il vostro blog
9 - Wordpress e il vostro blog
 
B Human Progetti di Stage 2009
B Human Progetti di Stage 2009B Human Progetti di Stage 2009
B Human Progetti di Stage 2009
 
01 - Introduzione al Corso Strumenti e Applicazioni del Web - CdLM in TTC - 2...
01 - Introduzione al Corso Strumenti e Applicazioni del Web - CdLM in TTC - 2...01 - Introduzione al Corso Strumenti e Applicazioni del Web - CdLM in TTC - 2...
01 - Introduzione al Corso Strumenti e Applicazioni del Web - CdLM in TTC - 2...
 
2 Esercitazione (18/19)
2 Esercitazione (18/19)2 Esercitazione (18/19)
2 Esercitazione (18/19)
 
Smau Roma 2012 Mob App Camp put social in your app
Smau Roma 2012 Mob App Camp put social in your appSmau Roma 2012 Mob App Camp put social in your app
Smau Roma 2012 Mob App Camp put social in your app
 
Web20 Lez1
Web20 Lez1Web20 Lez1
Web20 Lez1
 

Facebook - Hack the Graph

  • 1. Hack the Graph giovedì 29 marzo 2012
  • 2. Agenda 1 The Open Graph Protocol 2 Social Plugins 3 Facebook Application Architecture 4 Tools & sessione pratica 5 Q&A giovedì 29 marzo 2012
  • 5. Canvas Page Le apps all’interno di facebook sono caricate su pagine di tipo “Canvas” Bisogna impostare il Canvas URL dove potete posizionare i vostri files html e css. Il Canvas URL viene caricato come iFrame. Le dimensioni standard da usare sono 760px (Fluid Canvas) giovedì 29 marzo 2012
  • 6. The Open Graph Protocol “At it’s core, the Open Graph Protocol is a specification for a set of meta tags you can use to markup your pages to tell us what type of real-world objects your page represents.” giovedì 29 marzo 2012
  • 7. Storia Open Graph Protocol Già nel 2008, Facebook ha lanciato Facebook Connect. Si tratta di quei piccoli blu pulsanti di "facebook" che vedete su siti web che consentono di commentare un post sul blog senza la necessità di registrarsi con un account particolare per quel sito. Facebook Connect permette alle persone di accedere a un sito esterno utilizzando il loro account di Facebook. E 'stato un grande successo e nell'arco di un anno aveva 100 milioni di utentiI. Nel mese di aprile del 2010, Facebook ha lanciato la sua "Open Graph" API. Ciò che questa piattaforma fa è del fantascientifico: collega qualsiasi sito della rete a Facebook. Si tratta di una nuova serie di strumenti di programmazione che permettono di ottenere informazioni dentro e fuori di facebook. In una sola settimana, il nuovo Open Graph plug-in sono stati trovati su 50.000 siti web. giovedì 29 marzo 2012
  • 8. The Open Graph Protocol Il protocollo denominato Open Graph di Facebook consente a qualsiasi pagina web di diventare un oggetto presente in un grafo sociale. Questo protocollo viene utilizzato da Facebook per consentire a qualsiasi pagina web di avere le stesse funzionalità di una pagina Facebook. Per trasformare le pagine web in oggetti grafici, è necessario aggiungere dei metadati di base ad una pagina web. Le quattro proprietà richieste per ogni pagina sono: * og:title - Il titolo dell'oggetto come dovrebbe apparire all'interno del grafico; * og:type - il tipo dell'oggetto, ad esempio, "film"; * og:image - l'URL di un'immagine che rappresenta l'oggetto all'interno del grafico; * og:url - L'URL canonica dell'oggetto che verrà utilizzato come ID permanente nel grafico; giovedì 29 marzo 2012
  • 9. The Open Graph Protocol giovedì 29 marzo 2012
  • 10. Graph API giovedì 29 marzo 2012
  • 11. Open Graph Mechanics 1. User takes an action in the app, such as cook a recipe 2. App invokes a HTTP POST to the Graph API end-point /me/action:object=Object_URL 3. Facebook will crawl the object webpage, read its meta tags and connect the object to the user via the action. giovedì 29 marzo 2012
  • 12. Actions & Objects Le Actions sono iterazioni ad alto livello la quale gli utenti possono eseguire nella vostra app. Gli Objects rappresentano entità che gli utenti possono agire nella vostra app. giovedì 29 marzo 2012
  • 13. News Feed and Ticker giovedì 29 marzo 2012
  • 18. Social Plugins Like Button Send Button Subscribe Comments Recommendations Like Box Login Button Registration Facepile Live Stream Activity Feed giovedì 29 marzo 2012
  • 19. Facebook Application Architecture 20’ LIVE SESSION ! https://devcenter.heroku.com/articles/facebook-ruby giovedì 29 marzo 2012
  • 22. Tools & Sessione pratica Graph API Explorer Javascript Test Console Developer App Insights Access Token Tool Change Log Debugger fbrell Live Status Test User API giovedì 29 marzo 2012
  • 24. References The Open Graph Protocol www.ogp.me The Technical decisions http://www.scribd.com/doc/30715288/The-Open-Graph-Protocol-Design-Decisions Platform Docs https://developers.facebook.com/docs/ Tutorial https://developers.facebook.com/docs/opengraph/tutorial/ Getting Started https://developers.facebook.com/docs/ Facebook Application Architecture (facebook-ruby) https://devcenter.heroku.com/articles/facebook-ruby Social Plugins https://developers.facebook.com/docs/plugins/ Facebook Platform Overview http://www.pluralsight-training.net/microsoft/courses/TableOfContents?courseName=fb-platform giovedì 29 marzo 2012
  • 25. THANKS! Ing. Guido Nardo Head of Innovation @ ETC Engineering Srl founder @ stealth startup NYC www.facebook.com/guido.nardo www.twitter.com/guidonardo www.linkedIn.com/in/guidonardo guido.nardo@gmail.com giovedì 29 marzo 2012