Hi5 Developer Center

OpenSocial Extensions


hi5 has extended OpenSocial in the following ways:

  1. hi5 features
  2. hi5-template
  3. hi5-lifecycle

hi5 Features

An optional feature that provides access to additional hi5-specific functionality.

  • New data requests (hi5 feature)
    • Photos (hi5.fetchAlbumsDataRequest)
  • New fields
    • Link for friend update media (hi5.ActivityMediaItemField.LINK)
    • Presence person field (hi5.PersonField.PRESENCE)
  • Much more to come!

hi5-template

We have provided templating support, a tag library and ability for parameterizing Internationalization messages.

  • <template xmlns:hi5="http://www.w3.org/1999/xhtml"></template>
  • <if test="expression"></if>
  • <else-if test="expression"></if>
  • <else></if>
  • <for-each var="variable" source="data-source"></for-each>
  • <apply-template name="template-name"/>
  • <hi5:name person="person-object"/>
  • <hi5:profile-pic [id="member-id" | person="person-object"] size="thumb | small"/>
  • <hi5:message key="property" [param="value"]'/>

You can read more about templating at: http://www.hi5networks.com/platform/wiki/CustomTags

hi5-lifecycle

This feature allows developers to declare callback URLs for app installation and removal.

Usage:
<Optional feature="hi5-lifecycle">
<Param name="installPingUrl" value="http://yourserver/handleInstall"/>
<Param name="removePingUrl" value="http://yourserver/handleRemove"/>
</Optional>

© 2008 hi5Networks