2. hi5 - Dominant Global Social Network
We are one of the largest web sites in the world (#8 on
Alexa) and the most global of all the social networking
sites.
Over 70+ million registered members and ~40 million
WW unique users
Most popular Spanish-speaking social network in the
world
Top 10 in Latin America
Mexico, Colombia, Bolivia, Guatemala, Peru, Costa Rica,
Nicaragua, Honduras, Ecuador, El Salvador
Top 10 in Rest of the World
Portugal, Greece, Romania, Cyprus, Thailand, Jamaica, Sri
Lanka, Kuwait, Jordan, Oman
3. Hi5’s Demographics
Broad reach across major demos:
18 to 34 primary
Roughly 50%split male/female
US traffic: significant percentage is Hispanic
Diverse traffic from Europe (25%), North America (15%) and Central & South
America (31%), Asia (21%)
Offered in 14 languages
Grew big in most international countries with English first and then
translated
Members use the site primarily to keep in touch with their friends. Users
have limited self-expression tools - skins, widgets, etc.
4. Getting Started
• A text editor, or the hi5 Gadget Editor
• Web hosting, or the built-in hosting in the
hi5 Gadget Editor
• A hi5 account
• Access to the hi5 sandbox
11. Hello World
• <Module> indicates that this XML file contains a gadget.
• <ModulePrefs> contains information about the gadget, and
its author.
• author_email must match your hi5 account’s email in the
hi5 container
• <Require feature="opensocial-0.7" /> denotes a required
feature of the gadget — in this case, the OpenSocial API
(v0.7).
• <Content type="html"> indicates that the gadget's content
type is HTML.
• <![ CDATA[…]]> contains the bulk of the gadget, including
all of the HTML, CSS, and JavaScript (or references to such
files).
23. Displaying App Data
function updateGiftList(viewer, data, friends) {
var json = data[viewer.getId()]['gifts'];
if (!json) {
givenGifts = {};
}
try {
givenGifts = gadgets.json.parse(json);
} catch (e) {
givenGifts = {};
}
var options = ['a cashew nut', 'a peanut', 'a hazelnut', 'a red pistachio nut'];
var html = new Array();
html.push('You have given:');
html.push('<ul>');
for (i in givenGifts) {
if (+(i) > 0) {
html.push('<li>' + friends[i] + ' received ' + options[givenGifts[i]] + '</li>');
}
}
html.push('</ul>');
document.getElementById('given').innerHTML = html.join('');
}
28. Displaying App Data
function updateReceivedList(viewer, data, friends) {
var viewerId = viewer.getId();
var options = ['a cashew nut', 'a peanut', 'a hazelnut', 'a red pistachio nut'];
var html = new Array();
html.push('You have received:<ul>');
friends.each(function(person) {
var personData = data[person.getId()];
if (personData) {
var json = data[person.getId()]['gifts'];
var gifts = {}
if (!json) {
gifts = {};
}
try {
gifts = gadgets.json.parse(json);
} catch (e) {
gifts = {};
}
for (i in gifts) {
if (+(i) > 0 && i == viewerId) {
html.push('<li>' + options[gifts[i]] + ' from ' + person.getDisplayName() + '</li>');
}
}
}
});
html.push('</ul>');
document.getElementById('recieved').innerHTML = html.join('');
}
44. Other Features
• requestShareApp
• requestSendMessage
– EMAIL, PRIVATE_MESSAGE, PUBLIC_MESSAGE
• Person Field extensions
– SMALL_IMG_URL, MEDIUM_IMG_URL,
LARGE_IMG_URL
• Lifecycle Callbacks
• Activity Templates
45. hi5 Roadmap
March 15: Hackathon geared towards launch
preparation. Apps will be considered for
whitelisting from this date until launch.
March 31: Production launch