Chapter 9. OpenSocial 0.9 Compatibility

In this Chapter

Overview of OpenSocial Support

YAP supports the OpenSocial 0.9 JavaScript APIs and OpenSocial 0.8.1 RESTful API. The code for your Canvas View can include calls to the OpenSocial JavaScript APIs; YAP filters all JavaScript with Caja. Small View does not support JavaScript.

This chapter covers OpenSocial support for YAP, but does not discuss OpenSocial in general. For more information on OpenSocial, see the following documentation:

Note

As a charter member of the OpenSocial Foundation, Yahoo! is committed to supporting OpenSocial specifications and continues to work with the Foundation on new features such as OSML and OpenSocial Templates. However, only the OpenSocial specifications documented here should be regarded as fully compatible with YAP; support for other specifications is provisional or "beta".

For information about OpenSocial 0.8 support, see Chapter 10, OpenSocial 0.8 Compatibility.

Gadget Configuration for OpenSocial

OpenSocial 0.9 is supported by default, but can be specified explicitly in your project's Gadget XML file:

<Require feature="opensocial-0.9"/>

Do not attempt to mix support for different OpenSocial versions in the same application.

The following OpenSocial features are enabled by specific Require elements in Gadget XML:

Table of Contents