Introduction to OpenSocial

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

    24 Favorites & 11 Groups

    Introduction to OpenSocial - Presentation Transcript

    1. Google‘s Open Social Christian Scholz http://mrtopf.de/connect Barcamp Berlin 2 http://comlounge.net
    2. Write once, run everywhere
    3. Google Gadget Application
    4. Google Gadget Application Platform
    5. Google Gadget Application OpenSocial API Platform
    6. Platform OpenSocial API Google Gadget Application OpenSocial API Platform
    7. Orkut Flixter Ning
    8. Example
    9. Writing Applications
    10. 1. Write a Google Gadget
    11. Example GG HTML <?xml version=\"1.0\" encoding=\"UTF-8\" ?> <Module> <ModulePrefs title=\"Go to Photo Album\" height=\"250\" scaling=\"false\" /> <Content type=\"html\"> <![CDATA[ <div style=\"text-align:center\"><a id=\"Riggs\" title=\"My Photo Album\" target=\"_blank\" href=\"http://picasaweb.google.com/doc.examples/ShelfBoy\"> <img border=\"0\" alt=\"Photo\" src=\"http://doc.examples.googlepages.com/Riggsie-OP.jpg\" title=\"Click Here.\"></a> </div> ]]> </Content> </Module>
    12. 2. Importing Open Social <ModulePrefs title=\"Title of Your Application\"> <Require feature=\"opensocial-0.5\"/> </ModulePrefs>
    13. 3. Using Open Social function onLoadFriends(dataResponse) { // do something with the dataResponse } /** * Request for friend information when the page loads. */ function getData() { document.getElementById('message').innerHTML = 'Requesting friends...'; var req = opensocial.newDataRequest(); req.add(req.newFetchPersonRequest('VIEWER'), 'viewer'); req.add(req.newFetchPeopleRequest ('VIEWER_FRIENDS'), 'viewerFriends'); req.send(onLoadFriends); };
    14. 3. Using Open Social /** * Parses the response to the friend information request and generates * html to list the friends by their display name. * * @param {Object} dataResponse Friend information that was requested. */ function onLoadFriends(dataResponse) { var viewer = dataResponse.get('viewer').getData(); var html = 'Friends of ' + viewer.getDisplayName(); html += ':<br><ul>'; var viewerFriends = dataResponse.get('viewerFriends').getData(); viewerFriends.each(function(person) { html += '<li>' + person.getDisplayName(); }); html += '</ul>'; document.getElementById('message').innerHTML = html; };
    15. 3 APIs 1. People and Relationships 2. Persistence 3. Activities
    16. 3 APIs 1. People and Relationships 2. Persistence 3. Activities How are users between different social networks connected?
    17. Hosting Applications
    18. OpenSocial Service Provider Interface * Adding and removing friends * Adding and removing apps * Storing activities * Retrieving activity streams for self and friends * Storing and retrieving per-app and per-app-per-user data
    19. more documentation still to come with SDK

    + mrtopfmrtopf, 3 years ago

    custom

    7316 views, 24 favs, 29 embeds more stats

    These are the slides I prepared at Barcamp Berlin 2 more

    More info about this document

    CC Attribution-NonCommercial LicenseCC Attribution-NonCommercial License

    Go to text version

    • Total Views 7316
      • 6984 on SlideShare
      • 332 from embeds
    • Comments 0
    • Favorites 24
    • Downloads 409
    Most viewed embeds
    • 92 views on http://dev.comlounge.net
    • 71 views on http://www.techpresentations.org
    • 48 views on http://blog.communipedia.de
    • 36 views on http://taotakashi.wordpress.com
    • 20 views on http://funkykaraoke.blogspot.com

    more

    All embeds
    • 92 views on http://dev.comlounge.net
    • 71 views on http://www.techpresentations.org
    • 48 views on http://blog.communipedia.de
    • 36 views on http://taotakashi.wordpress.com
    • 20 views on http://funkykaraoke.blogspot.com
    • 9 views on http://www.kommunikationsforum.dk
    • 7 views on http://digitalemuseer.blogspot.com
    • 7 views on http://rizzblow.blogspot.com
    • 6 views on http://mrtopf.de
    • 5 views on http://tribaltek.blogspot.com
    • 5 views on http://khmerak.com
    • 4 views on http://jisi.dreamblog.jp
    • 3 views on http://www.netvibes.com
    • 2 views on http://72.14.235.104
    • 2 views on http://localhost
    • 2 views on http://owengeronimo.wordpress.com
    • 1 views on http://socialgadget.blogspot.com
    • 1 views on http://sentientworldsimulation.com
    • 1 views on http://desktopnanofactories.com
    • 1 views on http://3td4e1kd4ec2hf298kdm7isu8cbuckpm.sandbox.orkut.gmodules.com
    • 1 views on http://static.slideshare.net
    • 1 views on http://free-clickhere.com
    • 1 views on http://biotechrisks.com
    • 1 views on http://www.funkykaraoke.com
    • 1 views on http://pierrebsas.vodpod.com
    • 1 views on http://209.85.129.104
    • 1 views on http://feeds.feedburner.com
    • 1 views on http://wildfire.gigya.com
    • 1 views on http://blog.yiid.org

    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