Hi Amit. Passing in a single-item ID array should work:

opensocial.requestSendMessage(['01495306580392390900'], message);

However, orkut is preventing developers from passing in an array of
IDs to prevent potential abuse -- basically, to make it harder for
malicious developers to spam users with requests to install their
applications. However, this policy may still be reconsidered: please
file a new issue in the tracker with your justification/use cases, and
the team will review.

http://code.google.com/p/opensocial-resources/issues/list

- Jason

On Jun 5, 3:06 am, amythical <[EMAIL PROTECTED]> wrote:
> Hi,
>     What about the sendMessage accepting an array of Ids.
> Its throwing up a Baddoughnut error.
> Could the baddougnut atleast specify the reason for the bad doughnut.
> -Amit
>
> n Jun 3, 2:43 am, "Rohit Ghatol (Google)" <[EMAIL PROTECTED]>
> wrote:
>
> > Hi,
> > Yes, we are aware lot of you guys are asking question about the pop up
> > box. There is a good amount of thought put behind the idea of this
> > popup box and here is the explanation for that.
>
> > The thinking here should be that the person is sending the message and
> > not the application. This is very important for a application user to
> > choose to send a message to his friends, than the application doing
> > this automatically on his/her behave. If this is totally transparent
> > and invisible, it may so happen that some application developers may
> > exploit this feature for viral spread of their application, and the
> > application end user would be totally unaware of this fact.
>
> > Hence, a popup is shown, letting the user know whom he exactly intends
> > to send the message.
>
> > Hope this helps.
>
> > Thanks,
> > Rohit
>
> > On May 23, 2:53 am, jfahrenkrug <[EMAIL PROTECTED]> wrote:
>
> > > Ibrahim,
>
> > > I had the same problem. My mistake was that I said
>
> > > var recipient = opensocial.DataRequest.PersonId.VIEWER_FRIENDS;
>
> > > instead of
>
> > > var recipient = opensocial.DataRequest.Group.VIEWER_FRIENDS;
>
> > > Now it works :)
>
> > > - Johannes
>
> > > --http://blog.springenwerk.com
>
> > > On May 22, 6:41 pm, "ibrahim okuyucu" <[EMAIL PROTECTED]> wrote:
>
> > > > That behavior is by definition (read the blog post) but I couldn't get 
> > > > the
> > > > "ID array" (not even one ID) type of recpt to work.
> > > > It returns "BadRequest" in the response.
> > > > Any ideas? sample codes?
> > > > thnx
>
> > > > -ibrahim
>
> > > > On Thu, May 22, 2008 at 4:04 AM, Abhijit <[EMAIL PROTECTED]> wrote:
>
> > > > > this code is running well . But it is showing a dialogue box where I
> > > > > can choose my friend.
>
> > > > > But I don't want this type of box.  How can I do it? I have no problem
> > > > > to get friend's ids.
>
> > > > > unction requestSendMessage1(){
>
> > > > >        var params = {};
> > > > >        params[opensocial.Message.Field.TITLE]="Hello";
> > > > >        var body="How are you??";
> > > > >        var message = opensocial.newMessage(body, params);
> > > > >        var recipient = opensocial.DataRequest.Group.VIEWER_FRIENDS;
> > > > >        //var recipient = opensocial.DataRequest.PersonId.OWNER;
> > > > >         opensocial.requestSendMessage(recipient, message);
>
> > > > > }
>
> > > > --
> > > > Ibrahim Okuyucuwww.rockyou.com
> > > > AIM: wer0cky0u
--~--~---------~--~----~------------~-------~--~----~
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