MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

requestSendMessage()

Last post 11-05-2008 12:37 PM by Jennifer. 7 replies.
Page 1 of 1 (8 items)
Sort Posts: Previous Next
  • 05-02-2008 11:18 PM

    • mNeo
    • Top 25 Contributor
    • Joined on 02-05-2008
    • Posts 109

    requestSendMessage()

    opensocial.requestSendMessage(opensocial.DataRequest.Group.MDP, opensocial.newMessage("Any news on when we can use requestSendMessage() method? 30th April is gone already :(", params));

  • 05-06-2008 11:43 AM In reply to

    Re: requestSendMessage()

    In looking into this I see our implementation had a bug.  Code path worked for OWNER/VIEWER, but not any other IDs.  Fairly useless, IMO.  We'll be rolling a fix out in the coming weeks.  In the mean time you can use the MySpace container postTo extension.  An example is in this app:

    http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=364361327

    opensocial.Container.get().postTo(os_token, message, recipientPerson);

     When the call to opensocial.requestSendMessage() is fixed it will follow the same rules that postTo sendMessage does - namely only one recipient at a time and only to friends.   The opensocial.requestSendMessage() call actually delegates to postTo with the following behavior mappings per message type:

    • opensocial.Message.Type.PRIVATE_MESSAGE = MyOpenSpace.PostTo.Targets.SEND_MESSAGE;
    • opensocial.Message.Type.NOTIFICATION = MyOpenSpace.PostTo.Targets.BULLETINS;
    • opensocial.Message.Type.PUBLIC_MESSAGE = MyOpenSpace.PostTo.Targets.COMMENTS;

    Hope this helps

  • 05-06-2008 12:11 PM In reply to

    • mNeo
    • Top 25 Contributor
    • Joined on 02-05-2008
    • Posts 109

    Re: requestSendMessage()

    Thanks for the information, Chris. So, basically, I have no reason to wait for requestSendMessage() and it is essentially postTo() anyway. 

  • 05-11-2008 12:30 AM In reply to

    • mNeo
    • Top 25 Contributor
    • Joined on 02-05-2008
    • Posts 109

    Re: requestSendMessage()

    BTW, do you also mean that the user will have to manually approve each message going to his/her friend through requestSendMessage() just as he/she does in postTo? 

  • 05-14-2008 1:54 PM In reply to

    • mNeo
    • Top 25 Contributor
    • Joined on 02-05-2008
    • Posts 109

    Re: requestSendMessage()

     MySpace just announced in the OpenSocial summit that requestSendMessage() is working in MySpace. Were they talking about postTo()? Or is requestSendMessage() really working now?

  • 07-08-2008 11:31 AM In reply to

    • Steve
    • Not Ranked
    • Joined on 06-25-2008
    • Posts 9

    Re: requestSendMessage()

     I have the same question. I'd thank someone from Myspace for a reply :)

    -Steve

  • 07-14-2008 1:32 PM In reply to

    Re: requestSendMessage()

    The MySpace implementation of requestSendMessage is thru PostTo.  Our implementation beat the formalization of the OpenSocial spec, hence the two parallel paths.  From a conformance standpoint, you should use opensocial.requestSendMessage for message, comments, and bulletins.  We may eventually retire the postTo syntax, but there will be a transition period.

     FYI opensocial.requestShareApp is also thru PostTo and conforms to the same restrictions.

  • 11-05-2008 12:37 PM In reply to

    Re: requestSendMessage()

    Does "conforms to the same restrictions" include prompt for confirmation before posting to each person, even if an array of person is passed to requestSendMessage? That would be painful.

    Filed under:
Page 1 of 1 (8 items)