SlideShare a Scribd company logo
1 of 44
Download to read offline
Facebook Connect
                               in pratica




Monday, April 27, 2009
“The way of the world is meeting people 
                         through other people”
                            --Robert Kerrigan




Monday, April 27, 2009
Chi siamo?



Monday, April 27, 2009
Andrea Reginato




Monday, April 27, 2009
Andrea Franz




Monday, April 27, 2009
Facebook Connect
                                cosa




Monday, April 27, 2009
Facebook Connect
                                     cosa




                          Facebook fuori da Facebook




Monday, April 27, 2009
Facebook Connect
                               perché




Monday, April 27, 2009
Facebook Connect
                                  perché



                             I. Single Sign On




Monday, April 27, 2009
II. Virale




Monday, April 27, 2009
II. Virale


                             1




Monday, April 27, 2009
II. Virale


                         547




Monday, April 27, 2009
II. Virale


                         547 x 3% = 18




Monday, April 27, 2009
II. Virale


                         9.846


Monday, April 27, 2009
II. Virale


                         9.846 x 3% = 296


Monday, April 27, 2009
II. Virale




Monday, April 27, 2009
II. Virale


                         161.912

Monday, April 27, 2009
II. Virale


                         161.912
                            Cavolo!




Monday, April 27, 2009
Facebook Connect
                                come




Monday, April 27, 2009
Facebook Connect
                                come



                          Commenti Facebook su Blog




Monday, April 27, 2009
Facebook Connect
                                come



                            Commenti Facebook su Blog
                         Gioco basato su Facebook Connect




Monday, April 27, 2009
Commenti Facebook su Blog




Monday, April 27, 2009
Commenti Facebook su Blog
                                   prima




Monday, April 27, 2009
Commenti Facebook su Blog
                                    dopo




Monday, April 27, 2009
Commenti Facebook su Blog
                                  soprattutto




Monday, April 27, 2009
Commenti Facebook su Blog
                     <div class=quot;commentsquot;>
                       <fb:comments>
                       </fb:comments>

                       <script src=quot;http://static.ak.connect.facebook.com/js/
                     api_lib/v0.4/FeatureLoader.js.phpquot; type=quot;text/javascriptquot;>
                       </script>

                       <script type=quot;text/javascriptquot;>
                         FB_RequireFeatures([quot;XFBMLquot;], function(){
                           FB.Facebook.init(quot;14de6b72b5fd52f07607f76840a6801equot;, quot;/
                     xd_receiver.htmquot;);
                         });
                       </script>
                     </div>




Monday, April 27, 2009
Gioco basato su Facebook Connect




Monday, April 27, 2009
Gioco basato su Facebook Connect



                         FindYourFriend :)




Monday, April 27, 2009
FindYourFriend
                         funzionalità facebook connect




Monday, April 27, 2009
FindYourFriend
                         funzionalità facebook connect


                                    Login




Monday, April 27, 2009
FindYourFriend
                         funzionalità facebook connect


                                    Login
                            Rete sociale dell’utente




Monday, April 27, 2009
FindYourFriend
                         funzionalità facebook connect


                                     Login
                            Rete sociale dell’utente
                          Pubblicazione sul news feed




Monday, April 27, 2009
FindYourFriend
                             funzionalità facebook connect


                                          Login
                                 Rete sociale dell’utente
                               Pubblicazione sul news feed
                         Integrazione con tecnologie server side




Monday, April 27, 2009
FindYourFriend
                              login




Monday, April 27, 2009
FindYourFriend
                                              login



                     <div class=quot;loginquot;> 
                       <fb:login‐button autologoutlink=quot;truequot; length=quot;longquot;>
                       </fb:login‐button>
                     </div>




Monday, April 27, 2009
FindYourFriend
                                         login


       initFacebook: function() {    
         FB_RequireFeatures([quot;Apiquot;, quot;XFBMLquot;], this.onApiLoaded.bind(this));
       },

       onApiLoaded: function() {   
         FB.Facebook.init(this.facebook_api_key, this.xdChannelUrl);   
         this.facebook_api = FB.Facebook.apiClient;
         FB.ensureInit(function(){
           FB.Connect.ifUserConnected(connectedCallback, notConnectedCallback);
         });
       },  




Monday, April 27, 2009
FindYourFriend
                         rete sociale dell’utente




Monday, April 27, 2009
FindYourFriend
                                rete sociale dell’utente
             loadFriends: function() {
               this.container.down(quot;.loadingquot;).show();
               this.facebook_api.friends_get(null, this.onFriendsLoad.bind(this));
             },

             onFriendsLoad: function(result) {
               this.facebook_api.users_getInfo(result, ['first_name', 'last_name', 
             'pic_square'], this.onFriendsInfoLoad.bind(this));    
             },

             onFriendsInfoLoad: function(result, exception) {
               result.each(function(friendInfo) {
                 if (friendInfo.pic_square) this.users.push(new User(friendInfo));  
                                                                                    
               }.bind(this));
               this.initHandlers();
               this.showGame();
               this.onLoadCallback(this);
             },



Monday, April 27, 2009
FindYourFriend
                         pubblicazione sul news feed




Monday, April 27, 2009
FindYourFriend
                                   pubblicazione sul news feed

                         openDialog: function(level) {
                           var template_bundle_id = quot;69711773935quot;;
                           new FB.Connect.showFeedDialog(
                             template_bundle_id,
                             {level: level},
                             [], // target_id
                             quot;Great!quot;, 
                             null, // parametro deprecato
                             FB.RequireConnect.promptConnect, 
                             function(result, exception) {}, 
                             quot;FindYourFriendquot;, 
                             {value: quot;Yuhuhuhuhuu sono arrivato al livello quot; + 
                         level});
                         }




Monday, April 27, 2009
FindYourFriend
                         integrazione con tecnologie server side




Monday, April 27, 2009
FindYourFriend
                         integrazione con tecnologie server side

         onGameOver: function() {
           this.container.down(quot;#btnRestartquot;).show();    
           new Ajax.Request('/save', {
             parameters: quot;player[points]=quot; + this.points + quot;&player[uid]=quot; + 
         this.facebook_api.get_session().uid
           });
           this.openDialog(this.level.index);    
         },




Monday, April 27, 2009
Dimostrazione


Monday, April 27, 2009
Domande?
                          Andrea Franz <andrea@mikamai.com>
                         Andrea Reginato <reggie@mikamai.com>




Monday, April 27, 2009

More Related Content

Viewers also liked

Facebook Connect Presentation 08 10 2008
Facebook Connect Presentation 08 10 2008Facebook Connect Presentation 08 10 2008
Facebook Connect Presentation 08 10 2008Karl Bunyan
 
Facebook Connect For Your 
Website
Facebook Connect For Your 
WebsiteFacebook Connect For Your 
Website
Facebook Connect For Your 
WebsiteOzkan Altuner
 
Facebook Login and Open Graph
Facebook Login and Open GraphFacebook Login and Open Graph
Facebook Login and Open GraphTimon Hartung
 
App Nation - Build and Grow with Facebook Login and Sharing
App Nation - Build and Grow with Facebook Login and SharingApp Nation - Build and Grow with Facebook Login and Sharing
App Nation - Build and Grow with Facebook Login and SharingPeter Yang
 
The Introductory Guide to Social Login
The Introductory Guide to Social LoginThe Introductory Guide to Social Login
The Introductory Guide to Social LoginLoginRadius
 
Analysis of 150 Websites Using Facebook Login
Analysis of 150 Websites Using Facebook LoginAnalysis of 150 Websites Using Facebook Login
Analysis of 150 Websites Using Facebook LoginNeolane, Inc.
 
Facebook Login & Open Graph Introduction
Facebook Login & Open Graph IntroductionFacebook Login & Open Graph Introduction
Facebook Login & Open Graph IntroductionEric Ping
 
Facebook Connect 5 Things You Wish You Had Known Before You Started
Facebook Connect   5 Things You Wish You Had Known Before You StartedFacebook Connect   5 Things You Wish You Had Known Before You Started
Facebook Connect 5 Things You Wish You Had Known Before You StartedToby Beresford
 
Prada powerpoint
Prada powerpointPrada powerpoint
Prada powerpointwilsonliu07
 
Facebook Connect Design Patterns and Metrics
Facebook Connect Design Patterns and MetricsFacebook Connect Design Patterns and Metrics
Facebook Connect Design Patterns and MetricsHiten Shah
 
My Top 10 slides on presentations
My Top 10 slides on presentationsMy Top 10 slides on presentations
My Top 10 slides on presentationsAlexei Kapterev
 
Comunicare con le slides
Comunicare con le slidesComunicare con le slides
Comunicare con le slidesluisamarini
 
Facebook Powerpoint
Facebook PowerpointFacebook Powerpoint
Facebook Powerpointmyra14
 
Fight the Power(point)!
Fight the Power(point)!Fight the Power(point)!
Fight the Power(point)!Todd Reubold
 
7 Tips to Beautiful PowerPoint by @itseugenec
7 Tips to Beautiful PowerPoint by @itseugenec7 Tips to Beautiful PowerPoint by @itseugenec
7 Tips to Beautiful PowerPoint by @itseugenecEugene Cheng
 

Viewers also liked (20)

Facebook Connect
Facebook ConnectFacebook Connect
Facebook Connect
 
Facebook Connect Presentation 08 10 2008
Facebook Connect Presentation 08 10 2008Facebook Connect Presentation 08 10 2008
Facebook Connect Presentation 08 10 2008
 
Facebook Connect For Your 
Website
Facebook Connect For Your 
WebsiteFacebook Connect For Your 
Website
Facebook Connect For Your 
Website
 
Facebook Connect
Facebook ConnectFacebook Connect
Facebook Connect
 
Facebook Login and Open Graph
Facebook Login and Open GraphFacebook Login and Open Graph
Facebook Login and Open Graph
 
App Nation - Build and Grow with Facebook Login and Sharing
App Nation - Build and Grow with Facebook Login and SharingApp Nation - Build and Grow with Facebook Login and Sharing
App Nation - Build and Grow with Facebook Login and Sharing
 
The Introductory Guide to Social Login
The Introductory Guide to Social LoginThe Introductory Guide to Social Login
The Introductory Guide to Social Login
 
Analysis of 150 Websites Using Facebook Login
Analysis of 150 Websites Using Facebook LoginAnalysis of 150 Websites Using Facebook Login
Analysis of 150 Websites Using Facebook Login
 
Facebook Login & Open Graph Introduction
Facebook Login & Open Graph IntroductionFacebook Login & Open Graph Introduction
Facebook Login & Open Graph Introduction
 
Facebook Connect 5 Things You Wish You Had Known Before You Started
Facebook Connect   5 Things You Wish You Had Known Before You StartedFacebook Connect   5 Things You Wish You Had Known Before You Started
Facebook Connect 5 Things You Wish You Had Known Before You Started
 
Prada powerpoint
Prada powerpointPrada powerpoint
Prada powerpoint
 
Facebook Connect Design Patterns and Metrics
Facebook Connect Design Patterns and MetricsFacebook Connect Design Patterns and Metrics
Facebook Connect Design Patterns and Metrics
 
My Top 10 slides on presentations
My Top 10 slides on presentationsMy Top 10 slides on presentations
My Top 10 slides on presentations
 
Comunicare con le slides
Comunicare con le slidesComunicare con le slides
Comunicare con le slides
 
Presentation prada
Presentation pradaPresentation prada
Presentation prada
 
Presentation Secrets
Presentation SecretsPresentation Secrets
Presentation Secrets
 
Facebook Powerpoint
Facebook PowerpointFacebook Powerpoint
Facebook Powerpoint
 
Fight the Power(point)!
Fight the Power(point)!Fight the Power(point)!
Fight the Power(point)!
 
7 Tips to Beautiful PowerPoint by @itseugenec
7 Tips to Beautiful PowerPoint by @itseugenec7 Tips to Beautiful PowerPoint by @itseugenec
7 Tips to Beautiful PowerPoint by @itseugenec
 
STEAL THIS PRESENTATION!
STEAL THIS PRESENTATION! STEAL THIS PRESENTATION!
STEAL THIS PRESENTATION!
 

Recently uploaded

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 

Recently uploaded (20)

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 

Facebook Connect

  • 1. Facebook Connect in pratica Monday, April 27, 2009
  • 2. “The way of the world is meeting people  through other people” --Robert Kerrigan Monday, April 27, 2009
  • 6. Facebook Connect cosa Monday, April 27, 2009
  • 7. Facebook Connect cosa Facebook fuori da Facebook Monday, April 27, 2009
  • 8. Facebook Connect perché Monday, April 27, 2009
  • 9. Facebook Connect perché I. Single Sign On Monday, April 27, 2009
  • 11. II. Virale 1 Monday, April 27, 2009
  • 12. II. Virale 547 Monday, April 27, 2009
  • 13. II. Virale 547 x 3% = 18 Monday, April 27, 2009
  • 14. II. Virale 9.846 Monday, April 27, 2009
  • 15. II. Virale 9.846 x 3% = 296 Monday, April 27, 2009
  • 17. II. Virale 161.912 Monday, April 27, 2009
  • 18. II. Virale 161.912 Cavolo! Monday, April 27, 2009
  • 19. Facebook Connect come Monday, April 27, 2009
  • 20. Facebook Connect come Commenti Facebook su Blog Monday, April 27, 2009
  • 21. Facebook Connect come Commenti Facebook su Blog Gioco basato su Facebook Connect Monday, April 27, 2009
  • 22. Commenti Facebook su Blog Monday, April 27, 2009
  • 23. Commenti Facebook su Blog prima Monday, April 27, 2009
  • 24. Commenti Facebook su Blog dopo Monday, April 27, 2009
  • 25. Commenti Facebook su Blog soprattutto Monday, April 27, 2009
  • 26. Commenti Facebook su Blog <div class=quot;commentsquot;>   <fb:comments>   </fb:comments>   <script src=quot;http://static.ak.connect.facebook.com/js/ api_lib/v0.4/FeatureLoader.js.phpquot; type=quot;text/javascriptquot;>   </script>   <script type=quot;text/javascriptquot;>     FB_RequireFeatures([quot;XFBMLquot;], function(){       FB.Facebook.init(quot;14de6b72b5fd52f07607f76840a6801equot;, quot;/ xd_receiver.htmquot;);     });   </script> </div> Monday, April 27, 2009
  • 27. Gioco basato su Facebook Connect Monday, April 27, 2009
  • 28. Gioco basato su Facebook Connect FindYourFriend :) Monday, April 27, 2009
  • 29. FindYourFriend funzionalità facebook connect Monday, April 27, 2009
  • 30. FindYourFriend funzionalità facebook connect Login Monday, April 27, 2009
  • 31. FindYourFriend funzionalità facebook connect Login Rete sociale dell’utente Monday, April 27, 2009
  • 32. FindYourFriend funzionalità facebook connect Login Rete sociale dell’utente Pubblicazione sul news feed Monday, April 27, 2009
  • 33. FindYourFriend funzionalità facebook connect Login Rete sociale dell’utente Pubblicazione sul news feed Integrazione con tecnologie server side Monday, April 27, 2009
  • 34. FindYourFriend login Monday, April 27, 2009
  • 35. FindYourFriend login <div class=quot;loginquot;>    <fb:login‐button autologoutlink=quot;truequot; length=quot;longquot;>   </fb:login‐button> </div> Monday, April 27, 2009
  • 36. FindYourFriend login initFacebook: function() {       FB_RequireFeatures([quot;Apiquot;, quot;XFBMLquot;], this.onApiLoaded.bind(this)); }, onApiLoaded: function() {      FB.Facebook.init(this.facebook_api_key, this.xdChannelUrl);      this.facebook_api = FB.Facebook.apiClient;   FB.ensureInit(function(){     FB.Connect.ifUserConnected(connectedCallback, notConnectedCallback);   }); },   Monday, April 27, 2009
  • 37. FindYourFriend rete sociale dell’utente Monday, April 27, 2009
  • 38. FindYourFriend rete sociale dell’utente loadFriends: function() {   this.container.down(quot;.loadingquot;).show();   this.facebook_api.friends_get(null, this.onFriendsLoad.bind(this)); }, onFriendsLoad: function(result) {   this.facebook_api.users_getInfo(result, ['first_name', 'last_name',  'pic_square'], this.onFriendsInfoLoad.bind(this));     }, onFriendsInfoLoad: function(result, exception) {   result.each(function(friendInfo) {     if (friendInfo.pic_square) this.users.push(new User(friendInfo));       }.bind(this));   this.initHandlers();   this.showGame();   this.onLoadCallback(this); }, Monday, April 27, 2009
  • 39. FindYourFriend pubblicazione sul news feed Monday, April 27, 2009
  • 40. FindYourFriend pubblicazione sul news feed openDialog: function(level) {   var template_bundle_id = quot;69711773935quot;;   new FB.Connect.showFeedDialog(     template_bundle_id,     {level: level},     [], // target_id     quot;Great!quot;,      null, // parametro deprecato     FB.RequireConnect.promptConnect,      function(result, exception) {},      quot;FindYourFriendquot;,      {value: quot;Yuhuhuhuhuu sono arrivato al livello quot; +  level}); } Monday, April 27, 2009
  • 41. FindYourFriend integrazione con tecnologie server side Monday, April 27, 2009
  • 42. FindYourFriend integrazione con tecnologie server side onGameOver: function() {   this.container.down(quot;#btnRestartquot;).show();       new Ajax.Request('/save', {     parameters: quot;player[points]=quot; + this.points + quot;&player[uid]=quot; +  this.facebook_api.get_session().uid   });   this.openDialog(this.level.index);     }, Monday, April 27, 2009
  • 44. Domande? Andrea Franz <andrea@mikamai.com> Andrea Reginato <reggie@mikamai.com> Monday, April 27, 2009