Quick Upload

Loading...
Flash Player 9 (or above) is needed to view slideshows. We have detected that you do not have it on your computer.To install it, go here
 
Post to Twitter Post to Twitter
Myspace Hi5 Friendster Xanga LiveJournal Facebook Blogger Tagged Typepad Freewebs BlackPlanet gigya icons
SlideShare is now available on LinkedIn. Add it to your LinkedIn profile.

Introduction to OpenSocial

From mrtopf, 2 years ago Add as contact

These are the slides I prepared at Barcamp Berlin 2. I had the pleasure to present this together with David Recordon and we also had a great Q&A session with probably more questions than ansers

5514 views | 0 comments | 25 favorites | 368 downloads | 21 embeds (Stats)

Embed in your blog options close
Embed (wordpress.com) Exclude related slideshows Embed in your blog

More Info

This slideshow is Public
CC Attribution-NonCommercial LicenseCC Attribution-NonCommercial License
Total Views: 5514 on Slideshare: 5226 from embeds: 288
Flagged as inappropriate Flag as inappropriate

Flag as inappropriate

Select your reason for flagging this slideshow as inappropriate.

If needed, use the feedback form to let us know more details.

Slideshow Transcript

  1. Slide 1: Google‘s Open Social Christian Scholz http://mrtopf.de/connect Barcamp Berlin 2 http://comlounge.net
  2. Slide 2: Write once, run everywhere
  3. Slide 3: Google Gadget Application
  4. Slide 4: Google Gadget Application Platform
  5. Slide 5: Google Gadget Application OpenSocial API Platform
  6. Slide 6: Platform OpenSocial API Google Gadget Application OpenSocial API Platform
  7. Slide 7: Orkut Flixter Ning
  8. Slide 8: Example
  9. Slide 9: Writing Applications
  10. Slide 10: 1. Write a Google Gadget
  11. Slide 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. Slide 12: 2. Importing Open Social <ModulePrefs title=\"Title of Your Application\"> <Require feature=\"opensocial-0.5\"/> </ModulePrefs>
  13. Slide 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. Slide 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. Slide 15: 3 APIs 1. People and Relationships 2. Persistence 3. Activities
  16. Slide 16: 3 APIs 1. People and Relationships 2. Persistence 3. Activities How are users between different social networks connected?
  17. Slide 17: Hosting Applications
  18. Slide 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. Slide 19: more documentation still to come with SDK