We’ve heard from a few developers that they are currently experiencing a few issues with Application Invites in the v0.7 container and PostTo for IFrame based applications. We take all platform issues seriously and your feedback and cooperation are paramount for the success of our platform. We are working on getting the fixes out from our end, but in the meanwhile we wanted to alert you to the fix you can do from your end now.
For purely onsite applications:
When creating the Message object that you pass to requestShareApp make sure to include a value for TITLE (cannot be undefined):
// create the rSA message
var body = "Some message.";
var title = "This will be ignored but can't be undefined.";
// create an opensocial.Message object
var reason = opensocial.newMessage(body); reason.setField(opensocial.Message.Field.TITLE, title);
// initiate requestShareApp
opensocial.requestShareApp(recipient_array, reason, your_callback_func);
For IFrame applications:
You’ll have to change your reference to our IFrame Kit – This is mandatory as there is not a fix from our side for this. Rest assured that appropriate actions are being taken to mitigate this from happening in the future.
Before you needed the following scripts included:
<script src="http://x.myspacecdn.com/OpenSocial/references/gadgets003.js" type="text/javascript"></script>
<script src="http://x.myspacecdn.com/modules/common/static/js/Apps/ifpc003.js" type="text/javascript"></script>
<script src="http://x.myspacecdn.com/modules/common/static/js/Apps/json001.js" type="text/javascript"></script>
<script src="http://x.myspacecdn.com/OpenSocial/IFPC_externalIframe004.js" type="text/javascript"></script>
Replace with:
<script type="text/javascript" src="http://js.myspacecdn.com/OpenSocial/RPC/RpcContainer.000.js"></script>
<script type="text/javascript" src="http://js.myspacecdn.com/OpenSocial/RPC/RpcContainer.003.js"></script>
<script type="text/javascript" src="IFPC_externalIframe005.js" ></script>
<script type="text/javascript">
gadgets.rpc.setRelayUrl('..', 'http://profile.myspace.com/Modules/Applications/Pages/rpc_relay.aspx');
</script>
Code for IFPC_externalIframe005.js can be found HERE .
We have updated our sample application for reference.
After we have the fix out for appInvites to handle the missing Title you can go back to not including it if you choose.
We are deeply committed to the MySpace Open Platform and we’re sorry for any inconvenience this may have caused. We’re working hard to get a fix out now.