I;ve tried to test my app with another developer. So I used tthis IFPC from the demo to share this app with my frind. I see the app invitaion dlgbox come up, and then I click Send. I even get a return message saying 's' (for SUCCESS - check code below). Howver the fiend to whom's sending the SHAREPP request does no see the invite. Wondering what's going on??
function inviteFriends(){
MyOpenSpace.MySpaceContainer.get().registerParam("panelId", "apppanel_XXX_canvas");
MyOpenSpace.MySpaceContainer.get().registerParam("localRelay", "http://XXXX/myspace/XXX/ifpc_relay_external001.html");
var container = MyOpenSpace.MySpaceContainer.get();
var messageText = "My cool message";
var postback = function(response){
if (response.errorMessage){
alert(response.errorMessage);
return;
}
switch (response){
case MyOpenSpace.PostTo.Result.ERROR:
alert("e");
break;
case MyOpenSpace.PostTo.Result.CANCELLED:
alert("c");
break;
case MyOpenSpace.PostTo.Result.SUCCESS:
alert("s");
break;
}
}
var params = {};
params[MyOpenSpace.Message.Field.TITLE] = "title";
params[MyOpenSpace.Message.Field.TYPE] = MyOpenSpace.PostTo.Targets.SHARE_APP; //This can be SHARE_APP or COMMENTS
//The recipient information can be retrieve using the REST API
var recipientId = "XXX";
var recipientThumbnail = "http://c4.ac-images.myspacecdn.com/images02/34/m_b6316f12f68545a4a1701d2f44e6ad8f.jpg"; //Set the url of the Thumbnail image
var recipientName = "fktest4";//Set the name of the recipient
var recipientProfileUrl = "http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=450997587"; // Set the url of the profile of the recipient
var message = container.newMessage(messageText, params);
// If not post back method is required you can set it to undefined.
container.postTo(message, postback, recipientId, recipientName, recipientThumbnail, recipientProfileUrl);
//alert(1);
}
can anyone tell me what I'md doing wrong?