Ajaxworld Opensocial Presentation

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

    14 Favorites

    Ajaxworld Opensocial Presentation - Presentation Transcript

    1.  
    2. Introducing OpenSocial “Building Social Ajax applications with OpenSocial” Chris Schalk Developer Advocate Google
    3. Agenda
      • What is OpenSocial and Why is it important?
      • A Technical Overview of OpenSocial
        • JavaScript APIs
        • Container Software - Shindig
        • REST APIs
      • Where to find more information on OpenSocial
    4. Agenda
      • What is OpenSocial and Why is it important?
      • A Technical Overview of OpenSocial
        • JavaScript APIs
        • Container Software - Shindig
        • REST APIs
      • Where to find more information on OpenSocial
    5. What is OpenSocial?
      • OpenSocial is a set of common APIs for building social applications across the web
      • It is being developed by Google in conjunction with partners from the Web/Social Application development community
    6. Why OpenSocial is Important?
      • The Web is better when its social
      • Isn’t the Web social already?
      • 100s of millions of users already have signed up for social networks around the world
      • That’s great, but we believe it can get better
    7. The problem of social network development “ .. But what if you want to build an application that will run on multiple social websites?”
      • Problem: Developers have to learn multiple APIs to publish in multiple environments
      • Solution: OpenSocial allows developers to write applications to a common standard API that will run on multiple websites!
      • As each social website opens its environment to developers, it exposes an API
    8. OpenSocial solves this problem
    9. OpenSocial solves this problem
    10. What can OpenSocial do for the Web?
      • It’s about more , more , more
      • More applications can be built by developers
      • More websites can run these applications
      • More users can use these applications
      For Web developers this equates to distribution , distribution , distribution!
    11. OpenSocial is not Google Social
      • The evolution of OpenSocial…
      • “ It is about working with open standards and open partners in a collaborative fashion to build the best technology”
    12. OpenSocial in the US Pictures of hackerthon Partner Hackathon at SixApart in San Francisco Pictures of container meeting Numerous Hackathons held both at Google and at Partners sites
      • On Site Google Hackathons
        • We supplied Power, Wifi, & Pizza!
    13. OpenSocial in Japan Pictures of hackerthon 関連ドキュメントの 日本語化を検討中 Pictures of container meeting 世界でも最も Social Site が成功している国の一つ
      • パートナーのオンライン /
      • オフラインの参加をサポート
        • ハッカーソン
        • OpenSocial Container Provider Meeting
    14. OpenSocial in India Pictures of hackerthon Hacking in Delhi Pictures of container meeting Did a multi-city tour in Fall 07 - introducing OpenSocial
      • Kicking off Hackathon in Bangalore
        • OpenSocial Container Provider Meeting
    15. Who’s working on OpenSocial? Over 200 other influential companies… amiando Animoto Appirio Bebo Bleacher Report BonstioNet Brad Anderson Bunchball, Inc BuyFast Cardinal Blue Software Chakpak Chronus Corporation Ci&T Inc come2play CurrentTV E-junkie Engage.com eTwine Holdings, Inc. Fendoo Ltd Flixster FotoFlexer Friendster Grimmthething Guerreiro Consult HedgeStop.com Hi5 Hungry Machine Hyves IG.com (Division of Brasil Telecom) iFamily, Inc iLike Imeem Indeed.com KlickSports, Inc. LabPixies Ltd. LimitNone LinkedIn LjmSite LoveMyGadgets LuvGoogleGadgets Mesa Dynamics, LLC Mixi MuseStorm Inc MySpace Netvibes NewsGator Nike Ning NY Times Shelfari O Globo Online Oberon Media Oracle Orkut Outside.In PayPal Plaxo PROTRADE Puxa Qloud RockYou Salesforce.com …
    16. OpenSocial is not just for friends
      • There is an untapped Enterprise potential
      • Instead of friends just sharing photos, messages business partners can interact via social networks
      • Google is now partnering with many influential business application providers
    17. OpenSocial Roadmap
      • Version 0.5 was released in a “developer release” on Nov 1st.
        • First “sandbox” was made available on Orkut
      • Version 0.6 was released in December
        • Initial version of Shindig server software was launched as Apache incubator project
        • Other sandboxes came live - Hi5, Ning, Plaxo …
      • Version 0.7 (production) was released in January
        • MySpace, Hi5, Orkut officially launching “very soon”
    18. Gartner Technology Hype curve Case Study: OpenSocial Case Study: OpenSocial
    19. OpenSocial Roadmap a la the “Hype curve” Case Study: OpenSocial Case Study: OpenSocial
    20. Agenda
      • What is OpenSocial and Why is it important?
      • A Technical Overview of OpenSocial
        • JavaScript APIs
        • Container Software - Shindig
        • REST APIs
      • Where to find more information on OpenSocial
    21. OpenSocial APIs overview
      • People and Friends Data API Access friends information programmatically
      • Activities Data API See what you’re friends are up to Share what you are doing
      • Persistence Data API
        • Share data with your friends, the world
      The core OpenSocial services include:
    22. OpenSocial APIs overview
      • Gadgets Core Utilities handling gadget preferences, IO, JSON
      • Gadgets Feature-Specific Utilities for working with flash, window management, tabs, rpc, MiniMessage
      Additional Gadgets services include:
    23. Core Services - People & Friends /** * Request for friend info when the page loads. */ function getData() { var req = opensocial.newDataRequest(); req.add(req.newFetchPersonRequest(VIEWER), 'viewer' ); req.add(req.newFetchPeopleRequest(VIEWER_FRIENDS), 'viewerFriends' ); req.send( onLoadFriends ); }; Getting info on you and your friends :
    24. Core Services - People /** * Callback function for returned friend data. */ function onLoadFriends (response) { var viewer = response.get( 'viewer' ).getData(); var html = 'Friends of ' + viewer.getDisplayName() + ‘:<br><ul>’; var viewerFriends = response.get( 'viewerFriends' ).getData(); viewerFriends.each(function(person) { html += '<li>' + person.getDisplayName() + '</li>';}); html += '</ul>'; document.getElementById('message').innerHTML = html; }; Getting info on you and your friends : Generated output:
    25. Core Services - Activities /** * Posting a simple text 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(&quot;This is a sample activity, created at &quot; + new Date().toString()); Posting an Activity : Activities in Orkut:
    26. Core Services - Persistence /** * Storing data */ function populateMyAppData() { var req = opensocial.newDataRequest(); var data1 = Math.random() * 5; var data2 = Math.random() * 100; req.add(req.newUpdatePersonAppDataRequest(&quot;VIEWER&quot;, &quot;AppField1&quot;, data1)); req.add(req.newUpdatePersonAppDataRequest(&quot;VIEWER&quot;, &quot;AppField2&quot;, data2)); req.send(requestMyData); }; Requesting to persist data:
    27. Core Services - Persistence /** * Fetching data */ function requestMyData() { var req = opensocial.newDataRequest(); var fields = [&quot;AppField1&quot;, &quot;AppField2&quot;]; req.add(req.newFetchPersonRequest( opensocial.DataRequest.PersonId.VIEWER), &quot;viewer&quot;); req.add(req.newFetchPersonAppDataRequest(&quot;VIEWER&quot;, fields), &quot;viewer_data&quot;); req.send(handleReturnedData); } Requesting to persist data:
    28. Core Services - Persistence /** * Displaying persisted data */ function handleReturnedData(data) { var mydata = data.get(&quot;viewer_data&quot;); var viewer = data.get(&quot;viewer&quot;); me = viewer.getData(); // me is global var var data = mydata[me.getId()]; htmlout += &quot;AppField1: &quot; + data[&quot;AppField1&quot;] + &quot;<br/>&quot;; htmlout += &quot;AppField2: &quot; + data[&quot;AppField2&quot;] + &quot;<br/>&quot;; var div = document.getElementById('content_div'); div.innerHTML = htmlout; } Displaying the fetched ( persisted ) data: Generated output:
    29. Demonstration
      • Building some simple OpenSocial apps in Orkut
        • Displaying your friends
      • Reviewing other OpenSocial applications
    30. Agenda
      • What is OpenSocial and Why is it important?
      • A Technical Overview of OpenSocial
        • JavaScript APIs
        • Container Software - Shindig
        • REST APIs
      • Where to find more information on OpenSocial
    31. OpenSocial’s Container - Shindig
      • What is Shindig?
        • “ OpenSource software that allows you to serve OpenSocial applications”
      • Is currently an Apache Software Incubator project
        • Heavy partner involvement: Ning championed
        • Open source reference implementation of OpenSocial & Gadgets technologies
      • It’s Goal:
        • “ To serve as an easy to use OpenSocial “container in a box”
    32. Shindig Components Shindig Gadget Server Gadget Container JavaScript OpenSocial Container JavaScript Gadget Rendering Servlet
      • Gadget Server
        • Renders gadget XML (i.e. from gmodules.com)
        • Gadget Container JavaScript
      • OpenSocial Container JavaScript
        • JavaScript environment for people, activities, persistence
      • OpenSocial Gateway Server
        • WIP!
    33. Shindig in Action Running the application Request is made from Client Data is returned and rendered Application Installation Gadget XML is loaded and cached on OpenSocial Container Gadget XML Source
    34. Demonstration
      • Checking out the Shindig website
      • Running and Debugging Shindig from Eclipse
      • Trying out the SampleContainer
    35. Agenda
      • What is OpenSocial and Why is it important?
      • A Technical Overview of OpenSocial
        • JavaScript APIs
        • Container Software - Shindig
        • REST APIs
      • Where to find more information on OpenSocial
    36. OpenSocial’s REST APIs
      • Why are REST APIs needed?
        • “ What if you don’t have a JavaScript environment?”
      • Progress is now being made on the specification for OpenSocial REST APIs!
        • A new proposal is been published
          • Posted in “ opensocial-and-gadgets-spec ” Google Group
        • Currently receiving feedback
    37. With REST APIs OpenSocial can go Mobile!
      • The OpenSocial Mobile environment potential is obviously huge
      • Since OpenSocial based on common Web standards programming is straightforward
        • HTML/JavaScript
        • Flash/Flash Lite
        • REST APIs (Upcoming)
    38. With REST APIs OpenSocial can go Mobile!
    39. Agenda
      • What is OpenSocial and Why is it important?
      • A Technical Overview of OpenSocial
        • JavaScript APIs
        • Container Software - Shindig
        • REST APIs
      • Where to find more information on OpenSocial
    40. Where to find more info on OpenSocial
      • OpenSocial APIs
        • code.google.com/opensocial
        • code.google.com/p/opensocial-resources
      • Shindig
        • incubator.apache.org/shindig
      • (Me) [email_address]
    41. Questions?

    + Chris SchalkChris Schalk, 2 years ago

    custom

    3740 views, 14 favs, 6 embeds more stats

    The presentation I gave at AjaxWorld East.

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 3740
      • 3674 on SlideShare
      • 66 from embeds
    • Comments 0
    • Favorites 14
    • Downloads 127
    Most viewed embeds
    • 40 views on http://blog.menneveux.com
    • 11 views on http://ikteroak.blogsome.com
    • 8 views on http://elabnewsletter.news-echangeur.com
    • 5 views on http://www.dasai.es
    • 1 views on http://gauravuzanto.blogspot.com

    more

    All embeds
    • 40 views on http://blog.menneveux.com
    • 11 views on http://ikteroak.blogsome.com
    • 8 views on http://elabnewsletter.news-echangeur.com
    • 5 views on http://www.dasai.es
    • 1 views on http://gauravuzanto.blogspot.com
    • 1 views on http://208.96.55.108

    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