5 messages in com.googlegroups.opensocial-orkut[orkut-developer] Re: requestSendMess...
FromSent OnAttachments
yoyoga24 May 2008 04:39 
yoyoga24 May 2008 04:45 
Rohit Ghatol26 May 2008 10:46 
yoyoga02 Jun 2008 06:08 
aravi02 Jun 2008 13:57 
Subject:[orkut-developer] Re: requestSendMessage not working for VIEWER_FRIENDS and OWNER_FRIENDS
From:Rohit Ghatol (api_@google.com)
Date:05/26/2008 10:46:40 AM
List:com.googlegroups.opensocial-orkut

Hi Ashish, I have a code snippet for you, which would work in the sandbox also. Please give this one a try and don't hesitate to get back to me if you need any help.

<?xml version="1.0" encoding="UTF-8"?> <Module> <ModulePrefs title="Request Send Message" > <Require feature="opensocial-0.7"/> </ModulePrefs> <Content type="html"><![CDATA[ <script> function init(){ try{ var recipients = opensocial.DataRequest.Group.OWNER_FRIENDS; opensocial.requestSendMessage(recipients,opensocial.newMessage("Hello")); } catch(err){ alert(err); }

} gadgets.util.registerOnLoadHandler(init); </script> <h1>RequestSendMessage Example</h1> ]]></Content> </Module>

Thanks, Rohit Google Developer Programs

Join us at Google's biggest developer event of the year May 28-29, San Francisco http://code.google.com/events/io

On Sat, May 24, 2008 at 4:45 AM, yoyoga <ahuj@gmail.com> wrote:

Ok, works within CodeRunner. Not in Sandbox seperately. Strange!

I have tried:

var recipient = opensocial.DataRequest.Group.OWNER_FRIENDS; opensocial.requestSendMessage(recipients, message);

and

var recipient = opensocial.DataRequest.PersonId.OWNER_FRIENDS; opensocial.requestSendMessage(recipients, message);

None of them works. Only OWNER and VIEWER are working. Is it a bug?

Thanks. Ashish