Introduction to OpenSocial

60 %
40 %
Information about Introduction to OpenSocial

Published on November 3, 2007

Author: mrtopf

Source: slideshare.net

Description

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

Google‘s Open Social Christian Scholz http://mrtopf.de/connect Barcamp Berlin 2 http://comlounge.net

Write once, run everywhere

Google Gadget Application

Google Gadget Application Platform

Google Gadget Application OpenSocial API Platform

Platform OpenSocial API Google Gadget Application OpenSocial API Platform

Orkut Flixter Ning

Example

Writing Applications

1. Write a Google Gadget

Example GG HTML <?xml version=quot;1.0quot; encoding=quot;UTF-8quot; ?> <Module> <ModulePrefs title=quot;Go to Photo Albumquot; height=quot;250quot; scaling=quot;falsequot; /> <Content type=quot;htmlquot;> <![CDATA[ <div style=quot;text-align:centerquot;><a id=quot;Riggsquot; title=quot;My Photo Albumquot; target=quot;_blankquot; href=quot;http://picasaweb.google.com/doc.examples/ShelfBoyquot;> <img border=quot;0quot; alt=quot;Photoquot; src=quot;http://doc.examples.googlepages.com/Riggsie-OP.jpgquot; title=quot;Click Here.quot;></a> </div> ]]> </Content> </Module>

2. Importing Open Social <ModulePrefs title=quot;Title of Your Applicationquot;> <Require feature=quot;opensocial-0.5quot;/> </ModulePrefs>

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); };

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; };

3 APIs 1. People and Relationships 2. Persistence 3. Activities

3 APIs 1. People and Relationships 2. Persistence 3. Activities How are users between different social networks connected?

Hosting Applications

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

more documentation still to come with SDK

Add a comment

Related presentations

Related pages

Introduction to OpenSocial - ResearchGate

Publication » Introduction to OpenSocial. ... Page 1. OpenSocial in der Praxis Sebastian Galonska, Bastian Hofmann. Page 2
Read more

Introduction to OpenSocial 0.9 - OpenSocial Interest Group ...

As with previous versions of OpenSocial specification, it has been defined within the OpenSocial community which for version 0.9 decided to focus on new ...
Read more

Introduction to OpenSocial - Technology - documents.mx

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 ...
Read more

Introduction To Signed Requests - OpenSocial Reference ...

By the time you've gotten a couple introductory OpenSocial applications written, you may be wondering how you can take advantage of web services running on ...
Read more

Introduction to opensocial-actionscript-client - Documents

Introduction to opensocial-actionscript-client. Sung Wu Aaron Tong 2009/03/20. Agenda. Intro Architecture Code-sample Resource. A Flex library for ...
Read more

Introduction to OpenSocial - Google Developer Day 2008 China

OpenSocial是一个开放的协议,它定义了一组公共的接口,并且该 接口已经被很多著名的社区网站所支持,包括MySpace ...
Read more

OpenSocial Explorer Introduction - YouTube

The OpenSocial Explorer is a tool to help developers learn how to build OpenSocial gadgets. The goal of the OpenSocial Explorer is to ...
Read more

OpenSocial in der Praxis - researchgate.net

VZnet Netzwerke Ltd. l studiVZ.net l schuelerVZ.net l meinVZ.net Technischer Hintergrund zu OpenSocial! eine Erweiterung der Gadget API! ein offener Standard
Read more