Download - Social Networks @ Epidata 6 24 08
Redes SocialesIng. Ignacio Blanco
Epidata Consulting - Junio 2008
Agenda
• Introducción
• Ejemplos
• Objetos Sociales
• Componentes
• APIs
Introducción
"...social structure made of nodes (which are generally individuals or organizations) that are tied by one or more specific types of interdependency...”
Ejemplos
• ARPANET (1969) • BBS (1972) • Classmates (1995) • LinkedIn (2003) • MySpace (2005) • Facebook (2007) • OpenSocial (2007)
Objetos SocialesJaiku’s Jyri Engeström's 5 rules for social networks
Objetos SocialesJaiku’s Jyri Engeström's 5 rules for social networks
1. What is your object?
Objetos SocialesJaiku’s Jyri Engeström's 5 rules for social networks
1. What is your object?
2. What are your verbs?
Objetos SocialesJaiku’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 SocialesJaiku’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 SocialesJaiku’s Jyri Engeström's 5 rules for social networks
5. Are you charging the publishers or the spectators?
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 SocialesJaiku’s Jyri Engeström's 5 rules for social networks
5. Are you charging the publishers or the spectators?
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?
eBay
Objetos SocialesJaiku’s Jyri Engeström's 5 rules for social networks
5. Are you charging the publishers or the spectators?
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?
productoseBay
Objetos SocialesJaiku’s Jyri Engeström's 5 rules for social networks
5. Are you charging the publishers or the spectators?
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?
productos
comprar / vender
eBay
Objetos SocialesJaiku’s Jyri Engeström's 5 rules for social networks
5. Are you charging the publishers or the spectators?
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?
productos
comprar / vender
links / widgets
eBay
Objetos SocialesJaiku’s Jyri Engeström's 5 rules for social networks
5. Are you charging the publishers or the spectators?
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?
productos
comprar / vender
links / widgets
descuento
eBay
Objetos SocialesJaiku’s Jyri Engeström's 5 rules for social networks
5. Are you charging the publishers or the spectators?
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?
productos
comprar / vender
links / widgets
descuento
eBay
freemium / publisher en gral
Componentes
Componentes
Personas
Componentes
Personas
Invitaciones
Componentes
Personas
Grupos
Invitaciones
Componentes
Personas
Grupos
ActividadesInvitaciones
Componentes
Personas
Relaciones Grupos
ActividadesInvitaciones
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.
Facebook API<?php require_once 'appinclude.php';?><h1>Mi primer canvas!</p>Hola <fb:name uid="<?=$user;?>" useyou="false"/></p>Tus amigos son:</p><table><?php$i = 1;foreach ($facebook->api_client->friends_get() as $friend_id) { if ($i == 1){ echo "<tr>"; } echo "<td>" . "<fb:profile-pic uid='" . $friend_id . "'/>" . "</td>"; echo "<td>" . "<fb:name uid='" . $friend_id . "'/></br>" . "</td>"; if ($i == 4) { $i = 0; echo "</tr>"; } $i++;}?></table></h1>
Facebook API
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 OpenSocialFB OS
Perona, amigos & actividades ✔ ✔
acceso desde cliente (Javascript) ✔ ✔
acceso desde servidor (REST) ✔ ✔
container opensource ✔ ✔
lenguaje convencional ✘ ✔
hosting gratuito ✘ ✔
estándar ✘ ✔
¿Preguntas?
Muchas Gracias!
blog.blanconet.com.ar
del.icio.us/blanconet/socialnetworks