no, requestSendMessage is to send an email (or "Message") to the users.
you shoul try with requestCreateActivity, here you have a dummy sample (call
it with Activity.dummySend() ):

var Activity = {
  dummySend : function() {
    text = "This is a sample activity, created at " + new Date().toString();
    var params = {};
    params[opensocial.Activity.Field.BODY] = text;
    params[opensocial.Activity.Field.TITLE] = 'Este es el titulo';
    var activity = opensocial.newActivity(params);
    opensocial.requestCreateActivity(activity,
opensocial.CreateActivityPriority.HIGH, callback);
  }
};

function callback(status) {
  if (status.hadError()) {
    alert("Error creating activity.");
  } else {
    alert("Activity successfully created.");
  }
  return true;
};

2011/5/12 Vovchetto <[email protected]>

> Hi everyone! How can I send message to post it on user's wall?
> I'm using follow code:
>
>            function postMessage(id, body) {
>
>                 var params = {};
>                 params[opensocial.Message.Field.TITLE] = "Some
> Title";
>                 params[opensocial.Message.Field.TYPE] =
> opensocial.Message.Type.PUBLIC_MESSAGE;
>
>                 var message = opensocial.newMessage(body, params);
>
>                 opensocial.requestSendMessage(id, message,
> function(data) {
>                     console.log(data);
>                 });
>
>            }
>
> Is it correct way?
> Thanks.
>
> --
> 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.
>
>

-- 
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