function shareApp() { var recipient = null; var reason = opensocial.newMessage('Install this gadget to help share the love.'); opensocial.requestShareApp(recipient, reason, function(response){ if (response != null && response.hadError()) { alert('requestShareApp Error Code[' + response.getErrorCode() + '] Msg: ' + response.getErrorMessage()); } else if (response != null) { alert ('requestShareApp OK, Data[' + gadgets.json.stringify(response.getData()) + ']'); } else { alert('requestShareApp callback has null response'); } }); };




]]>