Simple OpenSocial ‘‘Hello World’’ Application

<?xml version="1.0" encoding="UTF-8"?>
  <ModulePrefs title="Hello World!">
    <Require feature="opensocial-0.8"/>
  <Content type="html"><![CDATA[
Hello, world!
<?xml version="1.0" encoding="UTF-8" ?> — This indicates that you have an XML file.
<Module> — This declares that this is a gadget.
<ModulePrefs title="Hello World!"> — This is the gadget information.
<Require feature="opensocial-0.8" /> — This indicates that you are using OpenSocial API version 0.8.
<Content type="html"> — This indicates that the gadget will be delivered as HTML. OpenSocial containers recommend this content type.
<![CDATA[ — This contains the contents of the gadget, including HTML, CSS, and JavaScript. This is similar the body tag of an HTML page.

Enjoyed this post? Share it!


Leave a comment

Your email address will not be published.