Hey,
I am also trying to implement the inviter in an iFrame and I am not having any luck with your suggestion. I have the code stripped to the bare minimum outlined by you, however it is still not working. Here is what I have:
=========== BEGINNING OF THE BASIC CODE ================
<script src="http://api.msappspace.com/OpenSocial/MyOpenSpace003.Widgets.js" ></script>
<div id="picker"></div>
<script>
window.friendPicker = new MyOpenSpace.Widgets.FriendPicker(
{
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>
=========== END OF THE BASIC CODE ================
[http://www.socialqna.com/myspace_apps/viral/] is the location listed in the iframe form field.
Like the other guy above said, I am able to get it to work if i choose "HTML/Javascript Source" in the application builder.
my app id is 112239
Thanks