Top Banner
It’s easier than you think: How to create social apps for millions of users Bastian Hofmann VZnet Netzwerke Ltd. VZnet Netzwerke Ltd. - Saturday, November 6, 2010
19

Creating OpenSocial Apps for millions of users

Dec 05, 2014

Download

Technology

Bastian Hofmann

 
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Creating OpenSocial Apps for millions of users

It’s easier than you think:How to create social apps for millions of users

Bastian HofmannVZnet Netzwerke Ltd.

VZnet Netzwerke Ltd. - Saturday, November 6, 2010

Page 2: Creating OpenSocial Apps for millions of users

VZnet Netzwerke Ltd. - Saturday, November 6, 2010

2

Agenda• Part 1: Theory–What is a Gadget?–What is OpenSocial?– Privacy at VZ-Netzwerke– OpenSocial Services– The REST API

• Part 2: Practical– Let‘s write our own Gadget

Page 3: Creating OpenSocial Apps for millions of users

VZnet Netzwerke Ltd. - Saturday, November 6, 2010

What is a Gadget?• XML file with HTML

and JavaScript (and CSS, Images, Flash, ...)

• Application based on the Google Gadgets specification

• Can be included on various platforms

Page 4: Creating OpenSocial Apps for millions of users

VZnet Netzwerke Ltd. - Saturday, November 6, 2010

How to include gadgets?• The Gadget Server– renders the Gadget XML– provides the JS API– provides the REST (and

RPC) API• Rendered result is

included through an <iframe> into the parent page (Container)

Page 5: Creating OpenSocial Apps for millions of users

VZnet Netzwerke Ltd. - Saturday, November 6, 2010

Gadget Features• Gadget specification

includes a rich JavaScript API with a multitude of features– preferences– views– dynamic-height– flash– io– ...

Page 6: Creating OpenSocial Apps for millions of users

VZnet Netzwerke Ltd. - Saturday, November 6, 2010

One Gadget - Different Views• Profile• Canvas• Preview• Group• Popup• Integration

Page 7: Creating OpenSocial Apps for millions of users

VZnet Netzwerke Ltd. - Saturday, November 6, 2010

And what is OpenSocial?• Extension of the Gadget JavaScript API

• an open standard

• enables gadgets to access the social graph of users

Page 8: Creating OpenSocial Apps for millions of users

VZnet Netzwerke Ltd. - Saturday, November 6, 2010

What about privacy?– Visibility• Visibility on a user‘s profile page can be

changed individually for friends or other people.

– Access• Access to user data is handled through a

special vcard– Communication• Gadget needs user permissions for

communication (Messages, Activity Stream, Notifications, ...)

Page 9: Creating OpenSocial Apps for millions of users

VZnet Netzwerke Ltd. - Saturday, November 6, 2010

VCards• Wile installing a

gadget, the user has to assign an vcard

• Data on vcard can differ to the user‘s profile

• Gadget has only access to data of users which have installed the gadget

Page 10: Creating OpenSocial Apps for millions of users

VZnet Netzwerke Ltd. - Saturday, November 6, 2010

Services

Page 11: Creating OpenSocial Apps for millions of users

VZnet Netzwerke Ltd. - Saturday, November 6, 2010

People Service• Access to social graph

(Users and their friends)

• At VZ: all vcards of users who have installed the gadget accessable

• At VZ: not writable

Page 12: Creating OpenSocial Apps for millions of users

VZnet Netzwerke Ltd. - Saturday, November 6, 2010

AppData Service• Persistent Key - Value

Store

• stored by gadget

• In practice most gadgets store data in their own backend

Page 13: Creating OpenSocial Apps for millions of users

VZnet Netzwerke Ltd. - Saturday, November 6, 2010

... and even more services• numerous additional services are

specified by the OpenSocial standard or by extensions implemented in one or more big containers:

– Activities–Messages– Payment– Photos

Page 14: Creating OpenSocial Apps for millions of users

VZnet Netzwerke Ltd. - Saturday, November 6, 2010

Server to Server: The REST API• All JavaScript OpenSocial APIs are

available in the REST (and RPC) API as well

• Access with– Two-legged OAuth (in the context of a

gadget)– or Three-legged OAuth with Consumer

Key and Secret

Page 15: Creating OpenSocial Apps for millions of users

VZnet Netzwerke Ltd. - Saturday, November 6, 2010

And now the fun part ...

Page 16: Creating OpenSocial Apps for millions of users

VZnet Netzwerke Ltd. - Saturday, November 6, 2010

DEMO

Page 18: Creating OpenSocial Apps for millions of users

VZnet Netzwerke Ltd. - Saturday, November 6, 2010

OpenSocial Europe Event06.12. - 07.12.

Utrecht (NL)

http://blog.opensocial.org/2010/10/first-european-opensocial-event-in.html