SlideShare a Scribd company logo
OpenSocial Creating Orkut Applications
Before We Start… If you have any questions, please don't hesitate to ask. During presentation we will create a sample application and run at Orkut. This session is not about OpenSocial container/Shindig.
About Me Doing PHP since 2000. Service Delivery Manager @ Clarion Technologies Pvt. Ltd. CMMI Level 3 Company My application “Cities I visited” listed at Orkut directory.
Something about you… How many of you know OpenSocial? How many of you used Facebook Applications? How many of you used Orkut Applications?.
Why OpenSocial? Facebook has its own API. It became popular with launch of applications. There are many other networking sites like Orkut, MySpace, hi5, linkedin etc. What if all creates their own API? Developer will have to create different application for each platform.
What an idea…
What is OpenSocial? OpenSocial defines a common API for social applications across multiple websites. Built from standard JavaScript and HTML, developers can create apps with OpenSocial  that access a social  network's friends and  update feeds.
Journey of OpenSocial Launched on November 1, 2007 with initial version 0.5 Initially supported by Friendster, hi5, MySpace, Ning, orkut and many more.  At launch Flixster, FotoFlexer, iLike, Newsgator, RockYou, Slide, Theikos, and VirtualTourist presented applications. Current version 0.8 released on May 28, 2008.
Who all are using it.
Basics… Simple “Hello World” Application (helloworld.xml) <?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?> <Module> <ModulePrefs title=&quot;Hello World!&quot;> <Require feature=&quot;opensocial-0.8&quot; /> </ModulePrefs> <Content type=&quot;html&quot;> <![CDATA[ Hello, world!]]> </Content> </Module>
Listing Friends … 1 - xml <?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?> <Module> <ModulePrefs title=“PHPCamp- List Friends&quot;> <Require feature=&quot;opensocial-0.7&quot;/> </ModulePrefs> <Content type=&quot;html&quot;> <![CDATA[  <script type=&quot;text/javascript&quot;> /* ... */ </script> <div id='main'> Your friends: <div id='friends'></div> </div> ]]> </Content> </Module>
Listing Friends …  2- js <script language=“JavaScript”> gadgets.util.registerOnLoadHandler(init); function  init() { var  req = opensocial.newDataRequest(); var  opt_params = {}; opt_params[opensocial.DataRequest.PeopleRequestFields.MAX] = 20;   req.add(req.newFetchPeopleRequest( 'OWNER_FRIENDS' ,opt_params),  'ownerFriends' ); req.send( onLoadFriends ); } </script>
Listing Friends …  3- js function  onLoadFriends(data) { var  viewerFriends = data.get(' viewerFriends ').getData(); var  html=&quot;&quot;; html=' <ul> '; viewerFriends.each( function (person) { var  friend_thumbnail = person.getField(opensocial.Person.Field.THUMBNAIL_URL); html +=' <li> ' + person.getDisplayName() +  '<img src= &quot;'+friend_thumbnail+'&quot; > </li> '; }); html +=' </ul> '; document.getElementById(' friends ').innerHTML = html; }
Listing Friends …  4- output
What else you can do Send request to your server and return information in text,XML or JSON format. Insert activity in users updates. Use of AJAX. Store information at Orkut server. Fetch owner and his friends information.
What you can’t do Post scraps through your application. Fetch personal information like phone number, birth date etc. Communicate between different OpenSocial sites. Any change at Orkut site. Application runs only at the space allocated to it e.g. profile view and container view. Run exactly same application on all supported sites.
References… Orkut OpenSocial Blog  http://orkut-open-social.blogspot.com/ Orkut Developer Forum  http://groups.google.com/group/opensocial-orkut Orkut developer Guide  http://code.google.com/apis/orkut/docs/orkutdevguide.html OpenSocial Tutorial  http://code.google.com/apis/opensocial/articles/tutorial/tutorial-0.8.html
That’s it! If you have any questions, don't hesitate to ask. Demonstration scripts and forms can be seen under  http://www.myphpdunia.com/phpcamp.html Feel free to contact me at  [email_address]
Thanks a lot for your interest.

More Related Content

PPT
Open Social
PPT
Web 2.0 - Open Source Perspective
PPT
Iost2011
PPT
Web Evaluation
PPTX
Keeping up with your industry using social media & the internet (ilta peer gr...
PPTX
What The Fuck Is Web Squared - Web²
PPT
Social bookmarking
PDF
Open Social
Web 2.0 - Open Source Perspective
Iost2011
Web Evaluation
Keeping up with your industry using social media & the internet (ilta peer gr...
What The Fuck Is Web Squared - Web²
Social bookmarking

Viewers also liked (8)

PPT
Overview Of Drupal
PDF
Above Average Group 3
PDF
Mt Campbell
PPT
Chap5 14
PDF
Inovação Aberta - Open Innovation
 
PPT
La Chiquis
PPT
Presentacion De Los Del Sur
PPT
TeachStreet Happy Hour
Overview Of Drupal
Above Average Group 3
Mt Campbell
Chap5 14
Inovação Aberta - Open Innovation
 
La Chiquis
Presentacion De Los Del Sur
TeachStreet Happy Hour
Ad

Similar to Open Social Phpcamp (20)

PDF
Goodle Developer Days Munich 2008 - Open Social Update
PPT
Hi5 Open Social
ODP
OpenSocial
PPT
Open social
PPT
BarCamp KL H20 Open Social Hackathon
PPT
OpenSocial - GTUG Stockholm Meeting Oct 1 2009
PDF
Jaoo - Open Social A Standard For The Social Web
PPT
RockYou at Girls in Tech Developer Forum
ODP
Barcamphanoi Opensocial Application Development
PDF
GSP East 2008: Open Social: Open For Business
PDF
Google Devfest Singapore - OpenSocial
PDF
Goodle Developer Days London 2008 - Open Social Update
PPT
Opensocial Haifa Seminar - 2008.04.08
PPT
Javapolis GWT Gadget OpenSocial
PPT
Introduction To The OpenSocial API
PPT
Ajaxworld Opensocial Presentation
PPTX
Top 5 Tips for Building Viral Social Web Applications and Sites
PPTX
Open Social Introduction - JUG SummerCamp 2010
PPT
OpenSocial Intro
PDF
Open Social Presentation - GSP West 2008
Goodle Developer Days Munich 2008 - Open Social Update
Hi5 Open Social
OpenSocial
Open social
BarCamp KL H20 Open Social Hackathon
OpenSocial - GTUG Stockholm Meeting Oct 1 2009
Jaoo - Open Social A Standard For The Social Web
RockYou at Girls in Tech Developer Forum
Barcamphanoi Opensocial Application Development
GSP East 2008: Open Social: Open For Business
Google Devfest Singapore - OpenSocial
Goodle Developer Days London 2008 - Open Social Update
Opensocial Haifa Seminar - 2008.04.08
Javapolis GWT Gadget OpenSocial
Introduction To The OpenSocial API
Ajaxworld Opensocial Presentation
Top 5 Tips for Building Viral Social Web Applications and Sites
Open Social Introduction - JUG SummerCamp 2010
OpenSocial Intro
Open Social Presentation - GSP West 2008
Ad

More from Amit Kumar Singh (20)

PPTX
Improving Core Web Vitals for WordPress
PPTX
Getting started with WordPress Development
PPTX
Alternate Development Techniques on WordPress
PPTX
Building Minimal Viable Product (MVP) with WordPress
PPTX
Rapid Prototyping With WordPress
PPTX
Stop Coding; Start Assembling Your Websites
PPTX
WordPress as Rapid Prototyping Tool
PPTX
WordPress Use Cases
PPTX
Leveraging your business with WordPress
PPT
Maharashtra at a glance
PDF
Custom Post Type and Taxonomies in WordPress 3.x
PPTX
WPoid : You Blog, We Take Care Of The Rest
ODP
Joomla Day India 2009 Business Logic With The Mvc
PPT
Joomla Request To Response
PPT
Introduction to web services and how to in php
PPT
Getting Started With Php Frameworks @BCP5
PPT
Php Security
PPT
PHP tips by a MYSQL DBA
PPT
Joomla @ Barcamp4(Feb 08 Pune)
PPT
Tables And SQL basics
Improving Core Web Vitals for WordPress
Getting started with WordPress Development
Alternate Development Techniques on WordPress
Building Minimal Viable Product (MVP) with WordPress
Rapid Prototyping With WordPress
Stop Coding; Start Assembling Your Websites
WordPress as Rapid Prototyping Tool
WordPress Use Cases
Leveraging your business with WordPress
Maharashtra at a glance
Custom Post Type and Taxonomies in WordPress 3.x
WPoid : You Blog, We Take Care Of The Rest
Joomla Day India 2009 Business Logic With The Mvc
Joomla Request To Response
Introduction to web services and how to in php
Getting Started With Php Frameworks @BCP5
Php Security
PHP tips by a MYSQL DBA
Joomla @ Barcamp4(Feb 08 Pune)
Tables And SQL basics

Recently uploaded (20)

PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Cloud computing and distributed systems.
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Empathic Computing: Creating Shared Understanding
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Diabetes mellitus diagnosis method based random forest with bat algorithm
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Spectral efficient network and resource selection model in 5G networks
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Advanced methodologies resolving dimensionality complications for autism neur...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Reach Out and Touch Someone: Haptics and Empathic Computing
Cloud computing and distributed systems.
Network Security Unit 5.pdf for BCA BBA.
Chapter 3 Spatial Domain Image Processing.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
NewMind AI Weekly Chronicles - August'25 Week I
Digital-Transformation-Roadmap-for-Companies.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
Empathic Computing: Creating Shared Understanding
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025

Open Social Phpcamp

  • 2. Before We Start… If you have any questions, please don't hesitate to ask. During presentation we will create a sample application and run at Orkut. This session is not about OpenSocial container/Shindig.
  • 3. About Me Doing PHP since 2000. Service Delivery Manager @ Clarion Technologies Pvt. Ltd. CMMI Level 3 Company My application “Cities I visited” listed at Orkut directory.
  • 4. Something about you… How many of you know OpenSocial? How many of you used Facebook Applications? How many of you used Orkut Applications?.
  • 5. Why OpenSocial? Facebook has its own API. It became popular with launch of applications. There are many other networking sites like Orkut, MySpace, hi5, linkedin etc. What if all creates their own API? Developer will have to create different application for each platform.
  • 7. What is OpenSocial? OpenSocial defines a common API for social applications across multiple websites. Built from standard JavaScript and HTML, developers can create apps with OpenSocial that access a social network's friends and update feeds.
  • 8. Journey of OpenSocial Launched on November 1, 2007 with initial version 0.5 Initially supported by Friendster, hi5, MySpace, Ning, orkut and many more. At launch Flixster, FotoFlexer, iLike, Newsgator, RockYou, Slide, Theikos, and VirtualTourist presented applications. Current version 0.8 released on May 28, 2008.
  • 9. Who all are using it.
  • 10. Basics… Simple “Hello World” Application (helloworld.xml) <?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?> <Module> <ModulePrefs title=&quot;Hello World!&quot;> <Require feature=&quot;opensocial-0.8&quot; /> </ModulePrefs> <Content type=&quot;html&quot;> <![CDATA[ Hello, world!]]> </Content> </Module>
  • 11. Listing Friends … 1 - xml <?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?> <Module> <ModulePrefs title=“PHPCamp- List Friends&quot;> <Require feature=&quot;opensocial-0.7&quot;/> </ModulePrefs> <Content type=&quot;html&quot;> <![CDATA[ <script type=&quot;text/javascript&quot;> /* ... */ </script> <div id='main'> Your friends: <div id='friends'></div> </div> ]]> </Content> </Module>
  • 12. Listing Friends … 2- js <script language=“JavaScript”> gadgets.util.registerOnLoadHandler(init); function init() { var req = opensocial.newDataRequest(); var opt_params = {}; opt_params[opensocial.DataRequest.PeopleRequestFields.MAX] = 20; req.add(req.newFetchPeopleRequest( 'OWNER_FRIENDS' ,opt_params), 'ownerFriends' ); req.send( onLoadFriends ); } </script>
  • 13. Listing Friends … 3- js function onLoadFriends(data) { var viewerFriends = data.get(' viewerFriends ').getData(); var html=&quot;&quot;; html=' <ul> '; viewerFriends.each( function (person) { var friend_thumbnail = person.getField(opensocial.Person.Field.THUMBNAIL_URL); html +=' <li> ' + person.getDisplayName() + '<img src= &quot;'+friend_thumbnail+'&quot; > </li> '; }); html +=' </ul> '; document.getElementById(' friends ').innerHTML = html; }
  • 14. Listing Friends … 4- output
  • 15. What else you can do Send request to your server and return information in text,XML or JSON format. Insert activity in users updates. Use of AJAX. Store information at Orkut server. Fetch owner and his friends information.
  • 16. What you can’t do Post scraps through your application. Fetch personal information like phone number, birth date etc. Communicate between different OpenSocial sites. Any change at Orkut site. Application runs only at the space allocated to it e.g. profile view and container view. Run exactly same application on all supported sites.
  • 17. References… Orkut OpenSocial Blog http://orkut-open-social.blogspot.com/ Orkut Developer Forum http://groups.google.com/group/opensocial-orkut Orkut developer Guide http://code.google.com/apis/orkut/docs/orkutdevguide.html OpenSocial Tutorial http://code.google.com/apis/opensocial/articles/tutorial/tutorial-0.8.html
  • 18. That’s it! If you have any questions, don't hesitate to ask. Demonstration scripts and forms can be seen under http://www.myphpdunia.com/phpcamp.html Feel free to contact me at [email_address]
  • 19. Thanks a lot for your interest.