Goodle Developer Days Madrid 2008 - Open Social Update

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    4 Favorites

    Goodle Developer Days Madrid 2008 - Open Social Update - Presentation Transcript

    1. OpenSocial ecosystem updates Patrick Chanezon Chris Chabot Chewy Trewhella Thomas Steiner 22/09/2008
    2. Agenda • OpenSocial introduction • How to build OpenSocial applications • Hosting social applications • Social applications monetization • OpenSocial container demos • Becoming an OpenSocial container • Google Friend Connect • Summary
    3. OpenSocial Introduction Patrick Chanezon
    4. Making the web better by making it social What does social mean?
    5. What does Social mean? Eliette what do you do with your friends?
    6. This work by Eliette Chanezon is licensed under a Creative Commons Attribution-Share Alike 3.0 License
    7. This work by Eliette Chanezon is licensed under a Creative Commons Attribution-Share Alike 3.0 License
    8. This work by Eliette Chanezon is licensed under a Creative Commons Attribution-Share Alike 3.0 License
    9. This work by Eliette Chanezon is licensed under a Creative Commons Attribution-Share Alike 3.0 License
    10. This work by Eliette Chanezon is licensed under a Creative Commons Attribution-Share Alike 3.0 License
    11. This work by Eliette Chanezon is licensed under a Creative Commons Attribution-Share Alike 3.0 License
    12. Raoul: a social object for Charlotte (3 year old)
    13. Jaiku’s Jyri Engeström's 5 rules for social networks: social objects 1. What is your object? 2. What are your verbs? 3. How can people share the objects? 4. What is the gift in the invitation? 5. Are you charging the publishers or the spectators? http://tinyurl.com/yus8gw
    14. How do we socialize objects online without having to create yet another social network?
    15. OpenSocial A common API for social applications across multiple web sites
    16. The Trouble with Developing Social Apps Which site do I build my app for?
    17. Let’s work on that… Using OpenSocial, I can build apps for all of these sites!
    18. What’s offered by OpenSocial? • Activities o What are people up to on the web • People/Profile Info o Who do I know, etc. • Persistent datastore o Handles key/value pairs
    19. Today: 375 Million User Reach
    20. Where is OpenSocial live today? Live to Users: Live Developer Sandboxes: • MySpace • iGoogle • orkut • imeem • Hi5 • CityIN • Freebar • Tianya • Friendster • Ning • Webon from Lycos • Plaxo Pulse • IDtail • Mail.ru • YiQi • Netlog - New! • Hyves - New! Individual Developer Links: http://code.google.com/apis/opensocial/gettingstared.html
    21. OpenSocial “Containers”
    22. What’s in OpenSocial? • JavaScript API - Now • REST Protocol - New • Templates - Prototype in Shindig
    23. OpenSocial’s JavaScript API • OpenSocial JS API • Gadget JS API • Gadget XML schema • OpenSocial v0.7 is live • OpenSocial v0.8 is being deployed now • Specs and release notes: http://opensocial.org
    24. OpenSocial’s REST Protocol • Access social data without JavaScript • Works on 3rd party websites / phones / etc • Uses OAuth to allow secure access • Open source client libraries in development o Java, PHP, Python, <your fav language here> • Being deployed with OpenSocial v0.8 • Spec’s available at http://opensocial.org
    25. OpenSocial Templates • Writing JavaScript is hard • Writing templates is easy • Templates also give o Consistent UI across containers o Easy way to localize o More interesting content options when inlining into container (activities, profile views) o Ability to serve millions of dynamic pages per day without a server
    26. Try out templates today! • Samples and docs: http://ostemplates-demo.appspot.com • Sample app: http://ostemplates-demo.appspot.com/friends.html • Discussion group: http://tech.groups.yahoo.com/group/os-templates/ • Code is all in Shindig, can download, use, and even submit patches to improve • So… o Get involved and provide comments, and o Build some apps
    27. OpenSocial is what you make it. • OpenSocial is an open source project. • The spec is controlled by the community. • Anyone can contribute and have a voice. • http://groups.google.com/group/opensocial/ o “OpenSocial and Gadgets spec” subgroup • OpenSocial Foundation o Get involved to nominate and elect board reps o http://www.opensocial.org/opensocial-foundation/
    28. A note on compliance • OpenSocial is designed for many sites • Building an app: o Technology o Policy • OpenSocial Compliance Tests o http://code.google.com/p/opensocial- resources/wiki/ComplianceTests
    29. OpenSocial Compliance test in orkut
    30. OpenSocial Compliance Matrix http://opensocial-compliance.appspot.com
    31. Other comments • Portable Contacts Alignment • Caja for JavaScript security
    32. A standard for everyone This work by Eliette Chanezon is licensed under a Creative Commons Attribution-Share Alike 3.0 License
    33. How To Build OpenSocial Applications
    34. People & Friends Example Requesting friend Info function getFriendData() { var req = opensocial.newDataRequest(); req.add( req.newFetchPersonRequest(VIEWER), 'viewer'); req.add( req.newFetchPeopleRequest(VIEWER_FRIENDS), 'viewerFriends'); req.send(onLoadFriends); }
    35. People & Friends Example Callback function for returned friend data function onLoadFriends(resp) { var viewer = resp.get('viewer').getData(); var viewerFriends = resp.get('viewerFriends').getData(); var html = 'Friends of ' + viewer.getDisplayName() + ‘:<br><ul>’; viewerFriends.each(function(person) { html += '<li>' + person.getDisplayName()+'</li>';}); html += '</ul>'; document.getElementById('friends').innerHTML += html; }
    36. Activities Example Posting an activity function postActivity(text) { var params = {}; params[opensocial.Activity.Field.TITLE] = text; var activity = opensocial.newActivity(params); opensocial.requestCreateActivity( activity, opensocial.CreateActivityPriority.HIGH, callback); } postActivity( \"This is a sample activity, created at \" + new Date().toString());
    37. Persistence Example Persisting data function populateMyAppData() { var req = opensocial.newDataRequest(); var data1 = Math.random() * 5; var data2 = Math.random() * 100; req.add( req.newUpdatePersonAppDataRequest(\"VIEWER\", \"AppField1\", data1)); req.add( req.newUpdatePersonAppDataRequest(\"VIEWER\", \"AppField2\", data2)); req.send(requestMyData); }
    38. Persistence Example Fetching persisted data function requestMyData() { var req = opensocial.newDataRequest(); var fields = [\"AppField1\", \"AppField2\"]; req.add(req.newFetchPersonRequest( opensocial.DataRequest.PersonId.VIEWER), \"viewer\"); req.add(req.newFetchPersonAppDataRequest(\"VIEWER\", fields), \"viewer_data\"); req.send(handleReturnedData); }
    39. Persistence Example Displaying fetched (persisted) data function handleReturnedData(data) { var mydata = data.get(\"viewer_data\"); var viewer = data.get(\"viewer\"); me = viewer.getData(); // me is global var var data = mydata[me.getId()]; htmlout += \"AppField1: \" + data[\"AppField1\"] + \"<br/>\"; htmlout += \"AppField2: \" + data[\"AppField2\"] + \"<br/>\"; var div = document.getElementById('content_div'); div.innerHTML = htmlout; }
    40. Resources For Application Developers Specification http://opensocial.org/ http://groups.google.com/group/opensocial-and-gadgets-spec Code Samples and Tools http://code.google.com/opensocial http://code.google.com/p/opensocial-resources/ Sandboxes http://developer.myspace.com/ http://www.hi5networks.com/developer/ http://opensocial.ning.com/ http://code.google.com/apis/orkut/ http://code.google.com/apis/igoogle/ http://en.netlog.com/go/developer/opensocial
    41. OpenSocial resources in spanish • Google Code in Spanish: http://code.google.com/intl/es/ • OpenSocial v0.7 - http://code.google.com/intl/es/apis/opensocial/ • Gadgets - http://code.google.com/intl/es/apis/gadgets/ (full reference for Opensocial 0.7) • Orkut API - http://code.google.com/intl/es/apis/orkut/
    42. Hosting social apps Patrick Chanezon
    43. Hosting OpenSocial apps In addition to using the provided persistence API... • Establish a \"home\" site where gadget can phone home to retrieve, post data • Can host home site on your own, or use services: o Amazon EC2 o Joyent o Google AppEngine • Zembly: is the world's first cloud-based development environment for social apps. Full OpenSocial support
    44. Google AppEngine and OpenSocial • Create an App Engine app as your backend! o Use makeRequest() to call back to your AppEngine server o Utilize AppEngine's datastore • New OpenSocial Apps are coming online o BuddyPoke, • Checkout Lane Liabraaten’s OpenSocial-AppEngine integration article o http://code.google.com/apis/opensocial/articles/appengine.html • Google IO Code Lab about OpenSocial Apps in the Cloud
    45. Social Apps monetization Patrick Chanezon
    46. OpenSocial Monetization • Ads from Ad Networks o AdSense, RightMedia o BuddyPoke, Rate My Friend • Brand/Private Label App o Sony Ericsson MTV Roadies app on orkut • Sell virtual or real goods • Free -> Freemium • Referrals • Virtual currency
    47. Success Story: Buddy Poke • #1 OpenSocial app on orkut • 8M installs for orkut, hi5, MySpace • $1-2 CPM • #1 App for App Engine w/ millions daily PV
    48. Success Story: PhotoBuzz • 6M+ installs on hi5 and orkut • CPM $1-3, especially good on orkut • 4M buzzes per day • Small team of 4 people, profitable
    49. Container demos
    50. Netlog Toon Coppens Folke Lemaitre
    51. What is Netlog?
    52. Your Profile
    53. Friend Activity
    54. Communication: Shouts
    55. Communication: Private messaging
    56. Communication: Chat
    57. Homepage
    58. Explore
    59. How are we doing? • More than 35,000,000 unique members • More than 6,000,000,000 pageviews/Month
    60. Europe and beyond...
    61. More than 23 languages • 23 languages and alot more coming! o 8,000,000 Spanish & Catalan speaking members Nederlands Svenska slovenščina Deutsch Magyar Русский English Italiano česky français Dansk suomi Polski Hrvatski Türkçe Afrikaans Slovenčina Eesti Català Español Português Latviešu Română valoda български Lietuvių kalba Norsk (bokmål)
    62. Applications
    63. Canvas view
    64. Profile view
    65. Home View (available soon!)
    66. Application directory
    67. Activity logs
    68. Share with your friends
    69. Requirements
    70. Whitelisting Requirements • an application should be fully integrated o no external login should be needed... o no external links • no ads in “profile” view • no spamming through activities/requests • localised & translated o We can help you!
    71. Localisation
    72. Seemless translation
    73. Localisation is important! • Translations are automatically injected • Translation tool for Netlog translators
    74. Monetization
    75. What’s in it for you? • Branding, co-branding, sponsorships • 100% revenue from vertical rectangle or skyscraper on your application page • Credit economy with Netlog OpenSocial extension
    76. Credit Economy • Virtual Currency • Use Cases o charge credits for app installation o charge credits for certain features o charge credits for buying items o charge credits for...
    77. Questions? • Developer pages: o http://es.netlog.com/go/developer/ • OpenSocial sandbox: o http://es.netlog.com/go/developer/opensocial/sandbox=1
    78. Viadeo Ariel Messias
    79. Google Dev Day OpenSocial Madrid Social Network Business Tool 08/09/25 Career Management © viadeo – septembre 2008
    80. Agenda • A few words about Viadeo • What to offer to Viadeo’s members • Sandbox presentation
    81. Viadeo • 3 groups of Use : o Social Network, o Business Tool o Career Management • 5 +m Members mainly : o Europe o China • Strong activity o 7, 000 new members/day o 10, 000 connections/day o +120, 000 consulted profiles/day o 1,3 M hubs registration
    82. International Footprint : 5+m Members France • 1.8m members(1) Other European countries • 150K members(1) Belgium • 100k members(1) UK/Ireland • 150 k members(1) China Switzerland • 2.2m members(1) • 50K members(1) Spain/Portugal Italy • 350k members(1) • 300k members(1) (1) end of August 2008
    83. Benefits Viadeo can offer to developers • 8 languages (European + China) • Professional oriented • Distribution of Members among all the Industries • Mainly “A Level” profiles • Members with High Revenues => Strong capabilities of monetization
    84. Vertical Apps ? Members split by industry
    85. “A Level” priority targets ? High qualification of Viadeo’s members
    86. Apps for Professional Social Network… Helping to : • Find Customers / Partners / Suppliers • Organize Meetings/Events • Share information and expertise But also ... • Get headhunted… • …and recruit • Etc…
    87. Sandbox Presentation – Create a Dev. Account
    88. Sandbox Presentation – Apps Directory
    89. Sandbox Presentation – My Apps
    90. Sandbox Presentation – Add an app
    91. Sandbox Presentation – Viadeo mailing list opensocial@viadeo.com
    92. Becoming an OpenSocial Container Chris Chabot
    93. Becoming an OpenSocial Container • Question: o How do you become an OpenSocial container? • Answer: o The Apache incubator project “Shindig” serves this purpose!
    94. What is Shindig ? • Open source reference implementation of OpenSocial & Gadgets specification • An Apache Software Incubator project • Available in Java & PHP • http://incubator.apache.org/shindig It’s Goal: “Shindig's goal is to allow new sites to start hosting social apps in under an hour's worth of work\"
    95. Introduction to Shindig Architecture • Gadget Server • Social Data Server • Gadget Container JavaScript
    96. Gadget Server
    97. Social Server
    98. Social Server - RESTful API • Preview available on o iGoogle o Orkut o Hi5 • New development models o Server to server & Mobile! • Try it out: curl http://localhost:8080/social/rest/people/john.doe/@all
    99. Implementing Shindig - Data sources • Integrate with your own data sources o People Service o Activities Service o App Data Service class MyPeopleService implements PeopleService { ... } class MyAppDataService implements AppDataService { ... } class MyActivitiesService implements ActivitiesService { ... }
    100. Implementing Shindig - Data sources • Implement functions function getActivities($ids) { $activities = array(); $res = mysqli_query($this->db, ”SELECT…\"); while ($row = @mysqli_fetch_array($res, MYSQLI_ASSOC)) { $activity = new Activity($row['activityId'], $row['personId']); $activity->setStreamTitle($row['activityStream']); $activity->setTitle($row['activityTitle']); $activity->setBody($row['activityBody']); $activity->setPostedTime($row['created']); $activities[] = $activity; } return $activities; }
    101. Implementing - Make it a platform • Add UI Elements o App Gallery o App Canvas o App Invites o Notification Browser • Developer Resources o Developer Console o Application Gallery • Scale it Out!
    102. Implementing - Scale it Out! • Prevent Concurrency issues • Reduce Latency • Add Caching • Add more caching!
    103. Usage Example: Sample Container • Static html sample container • No effort to get up and running • No database or features
    104. Usage Example: Partuza • Partuza is a Example social network site, written in PHP • Allows for local gadget development & testing too • Use as inspiration (or copy) for creating your own social site • http://code.google.com/p/partuza
    105. OpenSocial for intranet, portals Sun Microsystems • Socialsite: Shindig + gadget based UI written in Java • Open Source https://socialsite.dev.java.net/ Upcoming from Impetus • Zest: Shindig + Drupal (PHP) • Zeal: Shindig + Liferay (Java)
    106. Summary • Become an OpenSocial Container o Get Shindig (PHP or Java) o Look at examples & documentation o Implement Services o Add UI o Scale it out • Resources & Links: o http://www.chabotc.com/gdd/
    107. What is Friend Connect? Allows any site to become an OpenSocial container by simply copying a few snippets of code into your site http://www.google.com/friendconnect/
    108. Friend Connect gives ... • Users o ... more ways to do more things with my friends • Site owners o ... more (and more engaged) traffic for my site • App developers o ... more reach for my apps and ... make it easy
    109. Learn more code.google.com
    110. Q&A

    + chanezonchanezon, 2 years ago

    custom

    1759 views, 4 favs, 2 embeds more stats

    Updates about the OpenSocial ecosystem at Google de more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 1759
      • 1756 on SlideShare
      • 3 from embeds
    • Comments 0
    • Favorites 4
    • Downloads 38
    Most viewed embeds
    • 2 views on http://localhost
    • 1 views on http://google.aquteintelligence.com

    more

    All embeds
    • 2 views on http://localhost
    • 1 views on http://google.aquteintelligence.com

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories