Hi,

I'm trying out activities on opensocial 0.7. At first I tried to
follow API's reference guide but it seems to be too focused on the
message bundle (which is pretty cool) but lacks a wrapped up example
of bundle and activities together on a gadget.

So I tried to build a simple activity simply setting the title and
body. Below is the code I used:

function load(data){

   //get viewer
   var viewer = data.get('viewer').getData();
   //get a new activity
   var activity = opensocial.newActivity({'title':'has team'});
   //set it's body content
 
activity.setField(opensocial.Activity.Field.BODY,viewer.getDisplayName()
+ ' is a Bulls fan!');
   //and try to actually creating it
   opensocial.requestCreateActivity(activity,
opensocial.CreateActivityPriority.HIGH, function(responseItem){
      console.debug("responseItem", responseItem);

   });
}

ResponseItem sent out to my call back is an error object with the
following message:
"internalError" - "1101 no such stream: user_id <\n  token(0): \"g
\"\n  token(1): \"321246547780\"\n>\nsource_id <\n  token(0): \"g\"\n
token(1): \"261249392930\"\n>\n"

Does anyone know what may be wrong?

Thanks,
Vanessa.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to