0
OpenSocial for Students<br />By Rohit Ghatol<br />From <br />Pune Google Technology User Group<br />http://pune-gtug.blogs...
What is Pune-GTUG?GTUG stands for Google Technology User Group<br />
http://pune-gtug.blogspot.com<br />
What is OpenSocial?<br />
What is OpenSocial?<br />OpenSocial defines a common API for social applications across multiple websites. With standard J...
Before we answer that lets understand what social networking sites do?<br />Can you name some of the social networking sit...
Social Networking Sites<br />
What do you do on these sites?<br />We socialize and do some activity on these sites!<br />
What do you do on these sites?<br />Music<br />We connect and do some activity on these sites!<br />
What do you do on these sites?<br />Scrapbook<br />We connect and do some activity on these sites!<br />
What do you do on these sites?<br />Professional Recommendations<br />We connect and do some activity on these sites!<br />
What do you do on these sites?<br />And so on…..<br />We socialize and do some activity on these sites!<br />
Jaiku’s 5 rules for social networks<br />1. What is your object?<br />2. What are your verbs?<br />3. How can people share...
How do we socialize objectsonlinewithout having to create yetanother social network?<br />
OpenSocial<br />A common open set of APIs for building social applications across multiple sites<br />
This is NOT GoogleSocial. It’s about making the Web more social, not just Google.<br />
Standards-based<br />html+javascript+REST+OAuth<br />
Lets see some examples<br />
Back to the original QuestionWhat is OpenSocial?<br />
What is OpenSocial?<br />	When you write an Application for a OpenSocial Container (e.gOrkut) it <br />gives you access to...
What is OpenSocial?<br />	When you write an Application for a OpenSocial Container (e.gOrkut) it <br />gives you access to...
What is OpenSocial?<br />	When you write an Application for a OpenSocial Container (e.gOrkut) it <br />gives you access to...
What is OpenSocial?<br />	It turns sites like Orkut into a platform for developers to write more applications and allows u...
Roles in OpenSocial<br />Container – Sites which have OpenSocial Features like Orkut<br />User – Who use these sites<br />...
Code Samples<br /><?xml version="1.0" encoding="UTF-8" ?><br /><Module> <br />	<ModulePrefs title="Hello World!"> <br />		...
Code Samples<br /><?xml version="1.0" encoding="UTF-8" ?><br /><Module> <br />	<ModulePrefs title="Hello World!"> <br />		...
Code Samples<br />function loadFriends() { <br />varreq = opensocial.newDataRequest();  //Create a request to orkut<br />r...
Code Samples<br />function onLoadFriends(data) {<br />varviewer = data.get('viewer').getData(); <br />varviewerFriends = d...
Why OpenSocial?<br />Developer : Distribution to 275 Million people<br />Containers : More Features<br />User : More Appli...
Why OpenSocial?<br />When you develop an application-<br />How do you bring people to your application?<br />OR<br />Do yo...
Questions?<br />?<br />
Links<br />OpenSocial - http://code.google.com/apis/opensocial/<br />
References<br />OpenSocial Presentation from Google IO 2008<br />OpenSocial Site at code.google.com<br />
Disclaimer<br />The social networking site Orkut is used in many slides, just for the reason, that the audience is very fa...
Upcoming SlideShare
Loading in...5
×

Open social overview for students

1,528

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,528
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Open social overview for students"

  1. 1. OpenSocial for Students<br />By Rohit Ghatol<br />From <br />Pune Google Technology User Group<br />http://pune-gtug.blogspot.com<br />
  2. 2. What is Pune-GTUG?GTUG stands for Google Technology User Group<br />
  3. 3.
  4. 4. http://pune-gtug.blogspot.com<br />
  5. 5. What is OpenSocial?<br />
  6. 6. What is OpenSocial?<br />OpenSocial defines a common API for social applications across multiple websites. With standard JavaScript and HTML, developers can create apps that access a social network's friends and update feeds.<br />
  7. 7. Before we answer that lets understand what social networking sites do?<br />Can you name some of the social networking sites?<br />
  8. 8. Social Networking Sites<br />
  9. 9. What do you do on these sites?<br />We socialize and do some activity on these sites!<br />
  10. 10. What do you do on these sites?<br />Music<br />We connect and do some activity on these sites!<br />
  11. 11. What do you do on these sites?<br />Scrapbook<br />We connect and do some activity on these sites!<br />
  12. 12. What do you do on these sites?<br />Professional Recommendations<br />We connect and do some activity on these sites!<br />
  13. 13. What do you do on these sites?<br />And so on…..<br />We socialize and do some activity on these sites!<br />
  14. 14. Jaiku’s 5 rules for social networks<br />1. What is your object?<br />2. What are your verbs?<br />3. How can people share the objects?<br />4. What is the gift in the invitation?<br />5. Are you charging the publishers or the spectators?<br />
  15. 15. How do we socialize objectsonlinewithout having to create yetanother social network?<br />
  16. 16.
  17. 17.
  18. 18.
  19. 19.
  20. 20.
  21. 21. OpenSocial<br />A common open set of APIs for building social applications across multiple sites<br />
  22. 22. This is NOT GoogleSocial. It’s about making the Web more social, not just Google.<br />
  23. 23.
  24. 24.
  25. 25.
  26. 26. Standards-based<br />html+javascript+REST+OAuth<br />
  27. 27. Lets see some examples<br />
  28. 28.
  29. 29.
  30. 30.
  31. 31.
  32. 32.
  33. 33. Back to the original QuestionWhat is OpenSocial?<br />
  34. 34. What is OpenSocial?<br /> When you write an Application for a OpenSocial Container (e.gOrkut) it <br />gives you access to your Friends<br />
  35. 35.
  36. 36. What is OpenSocial?<br /> When you write an Application for a OpenSocial Container (e.gOrkut) it <br />gives you access to your Friends<br />allows you to read write updates (Activity Stream)<br />
  37. 37.
  38. 38. What is OpenSocial?<br /> When you write an Application for a OpenSocial Container (e.gOrkut) it <br />gives you access to your Friends<br />allows you to read write updates (Activity Stream)<br />allows you to store and share some information with your friends<br />
  39. 39. What is OpenSocial?<br /> It turns sites like Orkut into a platform for developers to write more applications and allows users to install these on top of Orkut<br /> So along with scrapping you can now interact with your friends in a number of ways. Chat with them, play games with them, plan your hangout places, all without leaving Orkut.<br />
  40. 40. Roles in OpenSocial<br />Container – Sites which have OpenSocial Features like Orkut<br />User – Who use these sites<br />Developer – Who develop applications for OpenSocial Sites<br />
  41. 41. Code Samples<br /><?xml version="1.0" encoding="UTF-8" ?><br /><Module> <br /> <ModulePrefs title="Hello World!"> <br /> <Require feature="opensocial-0.8" /><br /> </ModulePrefs> <br /> <Content type="html"> <br /><h1>Hello World</h1><br /></Content> <br /></Module><br />
  42. 42. Code Samples<br /><?xml version="1.0" encoding="UTF-8" ?><br /><Module> <br /> <ModulePrefs title="Hello World!"> <br /> <Require feature="opensocial-0.8" /><br /> </ModulePrefs> <br /> <Content type="html"> <br /><!– Your HTML Javascript goes here --><br /></Content> <br /></Module><br />
  43. 43. Code Samples<br />function loadFriends() { <br />varreq = opensocial.newDataRequest(); //Create a request to orkut<br />req.add(req.newFetchPersonRequest(opensocial.IdSpec.PersonId.VIEWER), 'viewer'); //Tell I want to get the Viewer<br />req.add(req.newFetchPeopleRequest(opensocial.newIdSpec({ "userId" : "VIEWER", "groupId" : "FRIENDS" });), 'viewerFriends');//Tell I want to get the Viewer’s Friends<br />req.send(onLoadFriends); <br />}<br />
  44. 44. Code Samples<br />function onLoadFriends(data) {<br />varviewer = data.get('viewer').getData(); <br />varviewerFriends = data.get('viewerFriends').getData(); <br />html = new Array(); <br />html.push('<ul>'); <br />viewerFriends.each(function(person) {<br />if (person.getId()) { <br />html.push('<li>' + person.getDisplayName() + "</li>"); <br /> } <br />}); <br />html.push('</ul>'); <br />document.getElementById('friends').innerHTML = html.join(''); <br />} <br />
  45. 45. Why OpenSocial?<br />Developer : Distribution to 275 Million people<br />Containers : More Features<br />User : More Applications<br />
  46. 46. Why OpenSocial?<br />When you develop an application-<br />How do you bring people to your application?<br />OR<br />Do you take your application to people?<br />
  47. 47. Questions?<br />?<br />
  48. 48. Links<br />OpenSocial - http://code.google.com/apis/opensocial/<br />
  49. 49. References<br />OpenSocial Presentation from Google IO 2008<br />OpenSocial Site at code.google.com<br />
  50. 50. Disclaimer<br />The social networking site Orkut is used in many slides, just for the reason, that the audience is very familiar with this site.<br />This presentation has no indentation to highlight one social networking site over other<br />
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×