Activity Stream Update

We'll have our initial Activity Stream support live in our sandbox tonight. Here's some sample code for requesting an Activity Stream entry:

// Create the activity item with a title - the title is a required field and the main text of the item
var activity = opensocial.newActivity("Something awesome just happened.");
// You can set the icon url, this field is optional
activity.setField(opensocial.Activity.Field.STREAM_FAVICON_URL, 'http://images.hi5.com/images/icons/_/update_widget.png');
// This actually creates the activity item. Currently priorities are treated the same, and all requests should be allowed
opensocial.requestCreateActivity(activity, opensocial.CreateActivityPriority['HIGH']);

Supported Fields:
  • STREAM_FAVICON_URL
  • TITLE
Partial Support
  • APP_ID - setting this does nothing, but the appId is pulled from the Hi5AuthToken
  • USER_ID - this also is pulled from the Hi5AuthToken currently, so it is always the logged in user, or viewer
  • POSTED_TIME - this is assumed to be the time the request is received

Next Steps:
  • Complete support for 0.6 fields
    • BODY - additional text
    • MEDIA_ITEMS - images
    • STREAM_SOURCE_URL, STREAM_URL, URL
  • Move on to OpenSocial 0.7
    • TITLE_ID, BODY_ID, TEMPLATE_PARAMS - support for activity stream templates

Leave a comment

Recent Entries

  • hi5 Announces Support for Facebook® Compatible APIs

    New interfaces minimize integration effort for social game developers San Francisco, CA; Mar. 2, 2010 -- hi5, the largest social entertainment site focused on gaming,...

  • hi5 to Unveil New Game Developer Program at GDC

    Alex St. John, hi5's President & CTO and long-time gaming visionary, will unveil the details of hi5's new Game Developer Program at the Game Developers...

  • Changes to hi5 Profile for OpenSocial Apps

    As you have probably noticed, we are introducing an entirely redesigned user interface for hi5.com. This new release was announced for public beta on October...

  • Hi5 Platform Update - May 2009

    As you may have noticed, hi5 has undergone some changes lately.  We're refocusing on the social entertainment market.  You may have noticed the new hi5...

  • Platform News - November 2008

    We've been busy working on the hi5 platform.  Recent releases include:Flash 9/10 Compatibility -- With Adobe's recent release of Flash 10 we noticed a number...

Close