Yeah, exactly the place i'm looking for it. Also checked the friend updates feed of another friend (added him as a developer before sending an activity)
The code is:
var params = {};
params[opensocial.Activity.Field.TITLE_ID] = "Created_Pet";
var pets_link = ...; //the link to application canvas here with some parameters in URL
pets_link = pets_link.substr(27);
params[opensocial.Activity.Field.TEMPLATE_PARAMS] = { "petsURL": pets_link };
var mediaItemArray = [;
mediaItemArray.push(opensocial.newMediaItem("", "http://api.myspace.com/v1/users/"+...))); //here the id number of a person who is sending an activity
params[opensocial.Activity.Field.MEDIA_ITEMS] = mediaItemArray;
var activity = opensocial.newActivity(params);
opensocial.requestCreateActivity(activity, opensocial.CreateActivityPriority.HIGH,function(data){
... //here i check the data - it says something like {postactivityid: 1, postactivitystatus: posted}
});
Template code:
Title: ${subject} has just adopted a pet!
Body: Click <a href="http://profile.myspace.com/${petsURL}">here</a> to adopt yours today.
Template was accepted in template editor and the code that sends it is almost a copy-paste of code from there too.
Still not sure what is the reason of activities not delivered :(