Introduction to OpenSocial - the official spiel

The following content is taken from:
http://code.google.com/apis/opensocial/

The web is better when it's social

The web is more interesting when you can build apps that easily interact with your friends and colleagues. But with the trend towards more social applications also comes a growing list of site-specific APIs that developers must learn.

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.

 

Many sites, one API

A common API means you have less to learn to build for multiple websites. OpenSocial is currently being developed by a broad set of members of the web community. The ultimate goal is for any social website to be able to implement the API and host 3rd party social applications. There are many websites that support OpenSocial, including hi5, LinkedIn, MySpace, Netlog, Ning, orkut, Yahoo and now Webjam


 

Loading ...


 

Getting started with OpenSocial on Webjam

A site that can host OpenSocial applications is called an OpenSocial container. A social application is simply an application running on an OpenSocial container. Webjam is now an OpenSocial container which is able to host your OpenSocial applications.

To add an application to a webjam page, simply drag the OpenSocial Container module onto a page and enter the URL of your app. The OpenSocial Container module can be found in the Webjam toolbox.

To write an OpenSocial application, you need a working knowledge of JavaScript. Because OpenSocial applications are built as gadgets, you'll need to know how a gadget is structured, and to make your application social, you'll need to learn about the OpenSocial JavaScript API. (If you prefer, you can write OpenSocial applications using a RESTful or RPC API.)

The OpenSocial API focuses on people. OpenSocial gadgets help users share their activities with each other and access information about their friends. There are three main feature areas in the OpenSocial API:

  • People and relationships. Members of social networks have friends. OpenSocial applications use the connections between people and their friends.
  • Persistence. OpenSocial applications can take advantage of persistence, the ability to store data that can be retrieved when the application runs again at a later time.
  • Activities. People use social applications to inform others about what they're doing: going to a movie, posting photos, and so on.

Many OpenSocial API calls are asynchronous: that is, the call returns immediately, but the action requested by the call does not take place right away. Instead, the call creates a server request to retrieve or update information. When you make an asynchronous call, you pass in a callback function. When the data is returned from the server, OpenSocial calls your callback function.

For more information about the concepts described in this section, see the following documents:


 

OpenSocial Developers Guide

The best way to learn about the specifics of developing an OpenSocial app is to look at the official developers guide.

 

OpenSocial Dev App

If you just want to have a play around with the OpenSocial capabilities on Webjam, head over to the OpenSocial Dev App page. This allows you to write JavaScript code directly into the browser and execute it against the OpenSocial Container. A number of samples are included to help you learn how it all works.

 

OpenSocial discussion forum

webjam_opensocial

Webjam loves OpenSocial so we've setup a special forum for any questions you might have about developing your OpenSocial apps. All the dev team are sent an email whenever you make a new post so we're always ready to answer your questions. 


Loading …
  • Server: web1.webjam.com
  • Total queries:
  • Serialization time: 63ms
  • Execution time: 109ms
  • XSLT time: $$$XSLT$$$ms