In the spirit of making your lives easier, we are introducing...
drum roll please...
The MyOpenSocial.Widgets library.
You may be familiar with FriendPicker from the original PostTo sample application.
Now, instead of filling your app up with tons of code cruft you can make a few simple calls for the same functionality:
//at top of file
MyOpenSpace.ClientLibraries.includeScript(
MyOpenSpace.ClientLibraries.Scripts.MYSPACE_WIDGETS);
...
//later in a registered init
var myFriendPicker = new MyOpenSpace.Widgets.FriendPicker(
{
element: "pickerDiv01",
buildSelectedUI: true
});
...
//and when you want to see what you have
var pickedPerson = myFriendPicker.selectedFriend;
http://www.myspace.com/myopensapcewidgetsamples
This is early in development, so if you find issues leave comments here or in the forums.
Also, check back in to this app periodically for new widgets as we release them.