Etech '09 FreeTech talk on Opensocial

909 views

Published on

A very brief overview of OpenSocial presented as an unconference-style FreeTech talk at the 2009 ETech conference (http://en.oreilly.com/et2009) in San Jose.

Published in: Technology, News & Politics
  • Be the first to comment

  • Be the first to like this

Etech '09 FreeTech talk on Opensocial

  1. 1. Making the most of OpenSocial Erik Eldridge Yahoo! Developer Network (YDN) ETech (FreeTech) 09 Image credit: jpctalbot, http://www.flickr.com/photos/laserstars/504917310/sizes/l/
  2. 2. What is it? <ul><li>A community developed standard for social network APIs </li></ul>
  3. 3. What’s it do for me? <ul><li>Less to learn </li></ul><ul><li>More containers </li></ul><ul><li>Bigger audience </li></ul><ul><li>Extensible </li></ul>
  4. 4. Where to start? (simple) <ul><li>Opensocial.org </li></ul>
  5. 5. Where to start? (a bit more) <ul><li>Your server </li></ul><ul><li>+ </li></ul><ul><li>{your code using OpenSocial} </li></ul><ul><li>+ </li></ul><ul><li>{container, e.g. yap*, orkut, myspace} </li></ul><ul><li>= </li></ul><ul><li>OpenSocial app </li></ul><ul><li>*supports OpenSocial JS API only </li></ul>
  6. 6. Simple Example <ul><li>Hello my name is: </li></ul><ul><li><div id=&quot;message&quot;></div> </li></ul><ul><li><script> </li></ul><ul><li>function request() { </li></ul><ul><li>var req = opensocial.newDataRequest(); </li></ul><ul><li>req.add(req.newFetchPersonRequest(&quot;OWNER&quot;), &quot;get_owner&quot;); </li></ul><ul><li>req.send(response); </li></ul><ul><li>}; </li></ul><ul><li>function response(dataResponse) { </li></ul><ul><li>var owner = dataResponse.get('get_owner').getData(); </li></ul><ul><li>var html = 'Hello my name is: ' + owner.getDisplayName(); </li></ul><ul><li>document.getElementById('message').innerHTML = html; </li></ul><ul><li>}; </li></ul><ul><li>request(); </li></ul><ul><li></script> </li></ul><ul><li>//credit: http://code.google.com/apis/opensocial/docs/0.8/devguide.html#Build_request </li></ul>
  7. 7. Containers <ul><li>hi5, LinkedIn, MySpace, orkut, … </li></ul><ul><li>http://wiki.opensocial.org/index.php?title=Containers </li></ul>
  8. 8. Numbers <ul><li>20+ containers </li></ul><ul><li>Hundreds of millions of users </li></ul>
  9. 9. Strategy <ul><li>According to BuddyPoke (39M users in 1 year)*: </li></ul><ul><ul><li>Deploy on every container possible </li></ul></ul><ul><ul><li>Use crowd-based localization services </li></ul></ul><ul><li>General: </li></ul><ul><ul><li>Use JavaScript to minimize server hits </li></ul></ul><ul><ul><li>Use server-side code to insulate against container differences </li></ul></ul><ul><li>* As noted at WeekendApps 2/09. </li></ul>
  10. 10. Cross Container <ul><li>Open Social code resources: http://code.google.com/p/opensocial-resources/wiki/ComplianceTests </li></ul><ul><li>Tutorial: http://sites.google.com/site/io/opensocial-across-containers </li></ul>
  11. 11. Links <ul><li>Opensocial .org </li></ul><ul><li>Google’s docs on getting started: code.google.com/apis/opensocial/gettingstarted.html </li></ul><ul><li>OpenSocial across containers video: http://sites.google.com/site/io/opensocial-across-containers </li></ul><ul><li>My notes from BuddyPoke’s talk at OpenSocial WeekendApps (2/09): http://erikeldridge.wordpress.com/2009/02/20/opensocialweekendapps-buddypoke/ </li></ul>

×