I am trying to use share feature in my app using this function
// i have constructed this array before. It has viewer friends ids
_NF_VIEWER_IDS={aaaaaaaaa,bbbbbbbb,cccccccccc,.......};
function sendEmail() {
var params = [];
params[opensocial.Message.Field.TITLE]="Hola!";
var body="Como estas?";
var message = opensocial.newMessage(body, params);
var recipient = _NF_VIEWER_IDS;
opensocial.requestSendMessage(recipient, message);
};
When i call this function, it doesnt show me Share popUp Box.
But in the above function if i use
var recipient = globalOwner.getId(); it works fine and im able to send
an email to the app owner.
I was going through this doc
http://code.google.com/apis/opensocial/docs/0.7/reference/opensocial.html#requestSendMessage
It says, we need to construct array of IDs to send email to viewers
friend.
How do i construct this array?
Any help would be appreciated.
-Anuj
www.nachofoto.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---