need help with sendmessage

1 view
Skip to first unread message

spiderjacob

unread,
Nov 28, 2008, 1:42:53 AM11/28/08
to Orkut Developer Forum
hi all, i m using following code for send the email to all owner
friends but it show me the error in firebug.

____________________

error
____________________
opensocial.DataRequest.Group has no properties
[Break on this error] var recipient =
opensocial.DataRequest.Group.OWNER_FRIENDS;


_________________

i m using this code
_________________

var params = [];
params[opensocial.Message.Field.TITLE]="Hola!";
var body="Como estas?";
var message = opensocial.newMessage(body, params);
var recipient = opensocial.DataRequest.Group.OWNER_FRIENDS;
opensocial.requestSendMessage(recipient, message);

spiderjacob

unread,
Nov 28, 2008, 1:43:42 AM11/28/08
to Orkut Developer Forum
please help me.

Rajasekhar

unread,
Dec 1, 2008, 12:32:00 AM12/1/08
to Orkut Developer Forum
HI

I just found one more issue in Sending Message.I am passing recipent
as one of my friends opensocial id those who don`t have
application..This code is perfectly working in Firefox but in IE i am
getting "app_id is null or not an object " can any one getting this
error .or any one faced this problem .
My application is

http://prod.sandbox.orkut.com/Main#Application.aspx?uid=17059828271166049021&appId=649525840822&bpc=1

For reproducing this error .

click on Invitefriends Image then u get friedd who don`t have
application

then click on any of your friends image then u get that error


any one help me
Thanks
Sekhar


On Nov 28, 11:43 am, spiderjacob <spiderja...@gmail.com> wrote:
> please help me.

Jason

unread,
Dec 1, 2008, 3:01:49 PM12/1/08
to Orkut Developer Forum
That code should work for v0.7 apps. If you're using v0.8 of the
OpenSocial API, just change the recipient line to the following:

var recipient = 'OWNER_FRIENDS';

- Jason

spiderjacob

unread,
Dec 3, 2008, 1:36:42 AM12/3/08
to Orkut Developer Forum
thanks Jason, problem solved by your suggestion.
thank you very much.
Reply all
Reply to author
Forward
0 new messages