To create an activity in the activity stream, follow the instructions in the sample code, on the sample code page.

It's useful to add the callback parameter to the call to requestCreateActivity() as described in the OpenSocial Reference Guide In the callback code, examine the getErrorMessage() function of the response item that is passed to the callback function.

The getErrorMessage() will inform you of the following restrictions if you violate them:

  1. The viewer needs to have the application installed
  2. Notifications can only be sent from the canvas or profile modules.

Note also that hi5 limits the number of notifications your application can send per day. This number changes depending on the level of engagement your application generates, on a 24-hour cycle.

Close