Hello, i am developing a myspace APP these days, but there is a problem i can't find the solution: i want implement the "invite friends" function, i had looked at this page :
http://developer.myspace.com/community/myspace/da4.aspx ,and i followed the example, but there was a js error in my page:
this.dataRequest_.endPoint_ has no properties.
I don't know why, anyone can help me? thanks very much.
Here is my code:
<script type='text/javascript' src='http://api.msappspace.com/OpenSocial/references/gadgets003.js'></script>
<script type='text/javascript' src='http://api.msappspace.com/OpenSocial/references/opensocialreference001.v07.js'></script>
<script type='text/javascript' src='http://api.msappspace.com/OpenSocial/MyOpenSpace006.Util.js'></script>
<script type='text/javascript' src='http://api.msappspace.com/OpenSocial/MyOpenSpace005.Entities.js'></script>
<script type='text/javascript' src='http://api.msappspace.com/OpenSocial/MyOpenSpace009.Mappers.v07.js'></script>
<script type='text/javascript' src='http://api.msappspace.com/OpenSocial/MyOpenSpace003.Enums.js'></script>
<script type='text/javascript' src='http://api.msappspace.com/OpenSocial/MyOpenSpace003.Widgets.js'></script>
<script type='text/javascript' src='http://api.msappspace.com/OpenSocial/MyOpenSpace016.Core.v07.js'></script>
<script type='text/javascript' src='http://api.msappspace.com/OpenSocial/MyOpenSpace007.Engine.js'></script>
<script type='text/javascript' src='http://api.msappspace.com/OpenSocial/references/json001.js'></script>
<script type='text/javascript' src='http://api.msappspace.com/OpenSocial/references/ifpc002.js'></script>
<h5>Invite friends:</h5>
<div id="picker"></div>
<script>
MyOpenSpace.ClientLibraries.includeScript(MyOpenSpace.ClientLibraries.Scripts.MYSPACE_WIDGETS);
MyOpenSpace.Widgets.Bootstrapper.createWidget("MyOpenSpace.Widgets.FriendPicker", function(p){window.friendPicker = p;},
{
element: "picker",
buildSelectedUI: true,
friendClickAction: sendAppAdd
});
function sendAppAdd(person){
if(person == null){
return;
}
message = opensocial.newMessage("[sender] would like you to install this really super application [app].");
opensocial.requestShareApp(person.getField(opensocial.Person.Field.ID), message, function(){
}
);
}
</script>