Social Networks @ Epidata 6 24 08

54
Redes Sociales Ing. Ignacio Blanco Epidata Consulting - Junio 2008

description

 

Transcript of Social Networks @ Epidata 6 24 08

Page 1: Social Networks @ Epidata 6 24 08

Redes SocialesIng. Ignacio Blanco

Epidata Consulting - Junio 2008

Page 2: Social Networks @ Epidata 6 24 08

Agenda

• Introducción

• Ejemplos

• Objetos Sociales

• Componentes

• APIs

Page 3: Social Networks @ Epidata 6 24 08

Introducción

"...social structure made of nodes (which are generally individuals or organizations) that are tied by one or more specific types of interdependency...”

Page 4: Social Networks @ Epidata 6 24 08

Ejemplos

• ARPANET (1969) • BBS (1972) • Classmates (1995) • LinkedIn (2003) • MySpace (2005) • Facebook (2007) • OpenSocial (2007)

Page 5: Social Networks @ Epidata 6 24 08

Objetos SocialesJaiku’s Jyri Engeström's 5 rules for social networks

Page 6: Social Networks @ Epidata 6 24 08

Objetos SocialesJaiku’s Jyri Engeström's 5 rules for social networks

1. What is your object?

Page 7: Social Networks @ Epidata 6 24 08

Objetos SocialesJaiku’s Jyri Engeström's 5 rules for social networks

1. What is your object?

2. What are your verbs?

Page 8: Social Networks @ Epidata 6 24 08

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?

Page 9: Social Networks @ Epidata 6 24 08

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?

Page 10: Social Networks @ Epidata 6 24 08

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?

Page 11: Social Networks @ Epidata 6 24 08

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

Page 12: Social Networks @ Epidata 6 24 08

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

Page 13: Social Networks @ Epidata 6 24 08

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

Page 14: Social Networks @ Epidata 6 24 08

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

Page 15: Social Networks @ Epidata 6 24 08

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

Page 16: Social Networks @ Epidata 6 24 08

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

Page 17: Social Networks @ Epidata 6 24 08

Componentes

Page 18: Social Networks @ Epidata 6 24 08

Componentes

Personas

Page 19: Social Networks @ Epidata 6 24 08

Componentes

Personas

Invitaciones

Page 20: Social Networks @ Epidata 6 24 08

Componentes

Personas

Grupos

Invitaciones

Page 21: Social Networks @ Epidata 6 24 08

Componentes

Personas

Grupos

ActividadesInvitaciones

Page 22: Social Networks @ Epidata 6 24 08

Componentes

Personas

Relaciones Grupos

ActividadesInvitaciones

Page 23: Social Networks @ Epidata 6 24 08

APIs

Page 24: Social Networks @ Epidata 6 24 08

APIs

Page 25: Social Networks @ Epidata 6 24 08

APIs

Page 26: Social Networks @ Epidata 6 24 08

APIs

Page 27: Social Networks @ Epidata 6 24 08

APIs

Page 28: Social Networks @ Epidata 6 24 08

APIs

Page 29: Social Networks @ Epidata 6 24 08

APIs

Page 30: Social Networks @ Epidata 6 24 08

APIs

Page 31: Social Networks @ Epidata 6 24 08

APIs

Page 32: Social Networks @ Epidata 6 24 08

APIs

Page 33: Social Networks @ Epidata 6 24 08

APIs

Page 34: Social Networks @ Epidata 6 24 08

APIs

Page 35: Social Networks @ Epidata 6 24 08

APIs

Page 36: Social Networks @ Epidata 6 24 08

APIs

Page 37: Social Networks @ Epidata 6 24 08

APIs

Page 38: Social Networks @ Epidata 6 24 08

APIs

Page 39: Social Networks @ Epidata 6 24 08

APIs

Page 40: Social Networks @ Epidata 6 24 08

APIs

Page 41: Social Networks @ Epidata 6 24 08

APIs

Page 42: Social Networks @ Epidata 6 24 08

APIs

Page 43: Social Networks @ Epidata 6 24 08

APIs

Page 44: Social Networks @ Epidata 6 24 08

APIs

write once, run everywhere

Page 45: Social Networks @ Epidata 6 24 08

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.

Page 46: Social Networks @ Epidata 6 24 08

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>

Page 47: Social Networks @ Epidata 6 24 08

Facebook API

Page 48: Social Networks @ Epidata 6 24 08

OpenSocial API

2 roles: • container: implementa la API • application: usa la API

2 modos: • Javascript API • RESTfull API (en desarrollo)

Page 49: Social Networks @ Epidata 6 24 08

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.

Page 50: Social Networks @ Epidata 6 24 08

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>

Page 51: Social Networks @ Epidata 6 24 08

OpenSocial API

Page 52: Social Networks @ Epidata 6 24 08

Facebook vs OpenSocialFB OS

Perona, amigos & actividades ✔ ✔

acceso desde cliente (Javascript) ✔ ✔

acceso desde servidor (REST) ✔ ✔

container opensource ✔ ✔

lenguaje convencional ✘ ✔

hosting gratuito ✘ ✔

estándar ✘ ✔

Page 53: Social Networks @ Epidata 6 24 08

¿Preguntas?

Page 54: Social Networks @ Epidata 6 24 08

Muchas Gracias!

[email protected]

blog.blanconet.com.ar

del.icio.us/blanconet/socialnetworks