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