requestSendMessage not working

17 views
Skip to first unread message

Leandro

unread,
May 26, 2011, 1:20:34 PM5/26/11
to orkut Developer Forum
Hi guys,

I have this function:

function enviaMensagem(pTitulo, pTexto, pIDAmigo)
{
var params = [];
params[opensocial.Message.Field.TITLE] = pTitulo;
params[opensocial.Message.Field.TYPE] =
opensocial.Message.Type.EMAIL;
var message = opensocial.newMessage(pTexto, params);
opensocial.requestSendMessage(pIDAmigo, message,
enviaMensagemCallBack);


}

been called like this:

enviaMensagem('Invite', 'My Message', "VIEWER_FRIENDS");

but the popup window don´t list the user's friends. I just got
"undefined" on the friends box.

Could you help me?

Thanks,

Leandro

Bruno Oliveira ("btco")

unread,
Jun 9, 2011, 10:00:28 PM6/9/11
to opensoci...@googlegroups.com
Hi,

Does it work if you send to a specific friend rather than trying to send to 'VIEWER_FRIENDS'?

-
Bruno Oliveira (Google)

Leandro

unread,
Jun 10, 2011, 8:10:03 AM6/10/11
to orkut Developer Forum
Hi Bruno,

Yes, it works. But we need a screen where user can select his friends
to send the message. It
used to work, but nowadays is not working anymore.

Thank you!!

Leandro

On 9 jun, 23:00, "Bruno Oliveira (\"btco\")" <bru...@google.com>
wrote:

José Miguel Hernandez

unread,
Aug 8, 2011, 6:47:03 PM8/8/11
to opensoci...@googlegroups.com
I am having this exact same issue and this is the second post I've seen on the topic. Is this a bug or just absence of a feature? 

I wrote my own friend selector dialog last night - which mostly works - but it would be better to use native UI for obvious user-recognition reasons. 

Can we get an ETA on a fix? 

Thanks, 

Leandro

unread,
Aug 9, 2011, 9:02:33 AM8/9/11
to orkut Developer Forum
Hi José,

Did you create a dialog where the user can select multiple friends
and
send message with just one click on "confirm"?

I tried to do this some days ago and it doesn't work because the api
doesn't accept
multiple calls to requestSendMessage in a short time interval.

Could you tell us how you did it?

Thank you very much!

Leandro
www.criosistemas.com.br
Reply all
Reply to author
Forward
0 new messages