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

A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 

Recently uploaded (20)

A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 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