Introducción
\"...social structure made of nodes (which are
generally individuals or organizations) that
are tied by one or more specific types of
interdependency...”
Objetos Sociales
Jaiku’s Jyri Engeström's 5 rules for social networks
Objetos Sociales
Jaiku’s Jyri Engeström's 5 rules for social networks
1. What is your object?
Objetos Sociales
Jaiku’s Jyri Engeström's 5 rules for social networks
1. What is your object?
2. What are your verbs?
Objetos Sociales
Jaiku’s Jyri Engeström's 5 rules for social networks
1. What is your object?
2. What are your verbs?
3. How can people share the objects?
Objetos Sociales
Jaiku’s Jyri Engeström's 5 rules for social networks
1. What is your object?
2. What are your verbs?
3. How can people share the objects?
4. What is the gift in the invitation?
Objetos Sociales
Jaiku’s Jyri Engeström's 5 rules for social networks
1. What is your object?
2. What are your verbs?
3. How can people share the objects?
4. What is the gift in the invitation?
5. Are you charging the publishers
or the spectators?
Objetos Sociales
Jaiku’s Jyri Engeström's 5 rules for social networks
eBay
1. What is your object?
2. What are your verbs?
3. How can people share the objects?
4. What is the gift in the invitation?
5. Are you charging the publishers
or the spectators?
Objetos Sociales
Jaiku’s Jyri Engeström's 5 rules for social networks
eBay
1. What is your object? productos
2. What are your verbs?
3. How can people share the objects?
4. What is the gift in the invitation?
5. Are you charging the publishers
or the spectators?
Objetos Sociales
Jaiku’s Jyri Engeström's 5 rules for social networks
eBay
1. What is your object? productos
2. What are your verbs? comprar / vender
3. How can people share the objects?
4. What is the gift in the invitation?
5. Are you charging the publishers
or the spectators?
Objetos Sociales
Jaiku’s Jyri Engeström's 5 rules for social networks
eBay
1. What is your object? productos
2. What are your verbs? comprar / vender
3. How can people share the objects? links / widgets
4. What is the gift in the invitation?
5. Are you charging the publishers
or the spectators?
Objetos Sociales
Jaiku’s Jyri Engeström's 5 rules for social networks
eBay
1. What is your object? productos
2. What are your verbs? comprar / vender
3. How can people share the objects? links / widgets
4. What is the gift in the invitation? descuento
5. Are you charging the publishers
or the spectators?
Objetos Sociales
Jaiku’s Jyri Engeström's 5 rules for social networks
eBay
1. What is your object? productos
2. What are your verbs? comprar / vender
3. How can people share the objects? links / widgets
4. What is the gift in the invitation? descuento
5. Are you charging the publishers freemium /
or the spectators? publisher en gral
Componentes
Componentes
Personas
Componentes
Personas
Invitaciones
Componentes
Personas
Grupos
Invitaciones
Componentes
Personas
Grupos
Invitaciones Actividades
Componentes
Personas
Relaciones Grupos
Invitaciones Actividades
APIs
APIs
APIs
APIs
APIs
APIs
APIs
APIs
APIs
APIs
APIs
APIs
APIs
APIs
APIs
APIs
APIs
APIs
APIs
APIs
APIs
APIs
write once, run
everywhere
Facebook API
API: REST & JavaScript brinda acceso a datos del usuario
y sus amigos.
(FQL, “Facebook Query Language”): lenguaje que
permite consultas complejas para obtener datos del
usuario y sus amigos.
(FBML, “Faceboook Markup Language”): lenguaje markup
similar al HTML.
OpenSocial API
2 roles:
• container: implementa la API
• application: usa la API
2 modos:
• Javascript API
• RESTfull API (en desarrollo)
OpenSocial API
Datos accesibles:
• people: información sobre personas y amigos.
• activities: permite publicar y recibir actividades de las
personas.
• persistence: utilizando una abstracción del tipo (clave, valor)
permite a las aplicaciones persistir su propia información.
OpenSocial API
<?xml version=\"1.0\" encoding=\"UTF-8\" ?>
<Module><ModulePrefs title=\"List Friends Example\"><Require feature=\"opensocial-0.7\"/></ModulePrefs>
<Content type=\"html\">
<![CDATA[
<script type=\"text/javascript\">
function getData() {
var req = opensocial.newDataRequest();
req.add(req.newFetchPersonRequest(opensocial.DataRequest.PersonId.VIEWER), 'viewer');
req.add(req.newFetchPeopleRequest(opensocial.DataRequest.Group.VIEWER_FRIENDS), 'viewerFriends');
req.send(onLoadFriends);
};
function onLoadFriends(dataResponse) {
var viewer = dataResponse.get('viewer').getData();
var viewerFriends = dataResponse.get('viewerFriends').getData();
var html = '<table>';
var i = 1;
viewerFriends.each(function(person) {
if (i == 1) { html += '<tr>'; }
html += '<td><img src=\\\"' + person.getField(opensocial.Person.Field.THUMBNAIL_URL) + '\\\"/></td>';
html += '<td>' + person.getDisplayName() + '</br></td>';
if (i == 4) { i = 0; html += '</tr>'; } i++;
});
document.getElementById('friends').innerHTML = html;
document.getElementById('viewer').innerHTML = viewer.getDisplayName();
};
gadgets.util.registerOnLoadHandler(getData);
</script>
...
]]>
</Content></Module>
OpenSocial API
Facebook vs OpenSocial
FB OS
Perona, amigos & actividades ✔ ✔
acceso desde cliente (Javascript) ✔ ✔
acceso desde servidor (REST) ✔ ✔
container opensource ✔ ✔
lenguaje convencional ✘ ✔
hosting gratuito ✘ ✔
estándar ✘ ✔
0 comments
Post a comment