This document provides an introduction to OpenSocial, including:
1) OpenSocial allows developers to build social applications that can be used across multiple social networks through a common API. This avoids having to build separate applications for each individual network.
2) OpenSocial applications are built with Gadgets, which define the user interface, and Gadgets JavaScript/OpenSocial JavaScript, which provide APIs for functionality like user profiles, activities, and persistent storage.
3) Upcoming OpenSocial features include Caja for security and templating to simplify converting OpenSocial data to HTML.
1 of 53
More Related Content
Barcamphanoi Opensocial Application Development
1. OpenSocial Application Development 4 th year HUT student Hanoi-Aptech student Work for eXo Platform SEA Tech events: OpenSocial Hackathon, PHP Day, BarCamp Hanoi, Tweetup, Meetup, H4, etc., Tags: - OpenSocial - Web Standard - Fun URLs: http://hoatle.net http://twitter.com/hoatle
18. Social Networks 3 features of a social network: Discover and Share (Search) Create and Share (Content) Discuss and Share (Communicate) Social networks include: Profiles: Who you are Friends: Your relationships Activities
22. Social Networks A social application: Lets the social network manage users and relationships Adds new features to the social network Let users install the application without signing up for new accounts Grows quickly because users are already communicating to each other
33. Where is OpenSocial live today? Live to users hi5 LinkedIn MySpace orkut Netlog Yahoo! Friendster Ning Google Friend Connect Live to developers IGoogle Gmail imeem Yoja CityIN .... Full list: http://wiki.opensocial.org/index.php?title=Containers
35. How to build OpenSocial app OpenSocial app = Gadgets + Gadgets JavaScript + OpenSocial JavaScript
36. Gadgets XML file Meta data definition Highly cacheable + no high performance server requirement HTML for markup, structure CSS for presentation JavaScript for interactivity, behavior
37. Gadgets Views? - Gadgets can be rendered in different locations on a container - Certain page might be pubic, some are private - View provide a way for gadgets to provide different functionality depends on where it is rendered
44. OpenSocial JavaScript Persistent data: Give apps key, value storage directly on the container String only, JSON conversion for complex data Storage per app per user scales well Ideal for settings, customizations
45. Upcoming features Caja: Reduces threats with a JavaScript sanitizer as an additional sandbox on top of Iframe protection Prevent gadgets from being used for phising, spam, malware, etc.,
46. Upcoming features Templating: Developers need a simple way to convert OpenSocial data to HTML DOM manipulation is slow and ugly
49. Challenges Cross-container development is still tricky - Containers may not follow the standard. - Containers may follow the standard but have different policies. - Follow best practices: http://wiki.opensocial.org/index.php?title=Cross-container_Development