any clue on the above problem ... just keeping the post on top. Thanks and regards
Shikhar On Thu, Aug 20, 2009 at 5:12 PM, Shikhar Sachan<shikhar.sac...@gmail.com> wrote: > Thanks for your help Athira > > However I you can send message to group of friends in v .7. I am sure > of that as I have done > it and the above code does the same. > Also I know that that we need to change v-.8 in module pref tag. > What I specifically want to know is, how do i modify > > var recipient = opensocial.DataRequest.Group.VIEWER_FRIENDS ; > > should I do something like > > var friend =opensocial.newIdSpec({ "userId" : "VIEWER", "groupId" : > "FRIENDS" }); > var recipient = opensocial.DataRequest(friend); > > this is exactly what I am looking for. And the above doesn't seem to work > > please help > > On Thu, Aug 20, 2009 at 12:44 PM, Athira JJ<api.ath...@google.com> wrote: >> >> 1. Update to OpenSocial 0.8 is by adding <Require >> feature="opensocial-0.8"/> to your application's ModulePrefs element. >> 2. You can make use of the idSpec by setting the recipient with >> opensocial.IdSpec.PersonId.OWNER, but sending message to group of >> friends is not currently supported in orkut. >> >> Regards, >> Athira >> >> On Aug 19, 5:07 pm, Shikhar Sachan <shikhar.sac...@gmail.com> wrote: >>> I have a sendmail function that is working fine on v 7. >>> However I have no clue as to hoe to convert it into v8. How should i >>> modify the DataRequest and use idSpec >>> Any help will be highly appreciated. >>> >>> function sendmail() { >>> >>> var params = []; >>> params[opensocial.Message.Field.TITLE]="Give the title here...!"; >>> var body="ffff "; >>> var message = opensocial.newMessage(body, params); >>> var recipient = opensocial.DataRequest.Group.VIEWER_FRIENDS ; >>> opensocial.requestSendMessage(recipient, message); >>> >>> } >> >> >> > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Orkut Developer Forum" group. To post to this group, send email to opensocial-orkut@googlegroups.com To unsubscribe from this group, send email to opensocial-orkut+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/opensocial-orkut?hl=en -~----------~----~----~----~------~----~------~--~---