zeno
unread,Oct 28, 2009, 8:52:20 AM10/28/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to opensocial-client-libraries
Hey I am working on myspace using OSAPI php client. Here is the
template for myspace.
Title: ${subject} said something
Body: Testing Post from application... ${what}
The code for creating activity in php is following:
// Myspace requires some addtional things to be set.
$msParameters = array();
$msParameters[]= array('key'=>'what', 'value'=>'Yatta!!!');
$activity->setField('templateParams', $msParameters);
$activity->setField('titleId', 'template_progress');
$create_params = array(
'userId' => '@me',
'groupId' => '@self',
'activity' => $activity,
'appId' => '@app'
);
$batch->add($osapi->activities->create($create_params),
'createActivity');
// Send all batched commands
$result = $batch->execute();
If I try to create an activity without any variables in it; it works
otherwise if I introduce a variable like in above example it gives me
error. Any help please :(