lecture 2 social web 2017

50
Social Web 2017 Lecture 2: What People DO on the Social Web? Davide Ceolin (credits to: Lora Aroyo) The Network Institute VU University Amsterdam

Upload: davide-ceolin

Post on 14-Feb-2017

269 views

Category:

Education


0 download

TRANSCRIPT

Page 1: Lecture 2 Social Web 2017

Social Web2017

Lecture 2: What People DO on the Social Web?

Davide Ceolin (credits to: Lora Aroyo)The Network Institute

VU University Amsterdam

Page 2: Lecture 2 Social Web 2017

Social RelationshipsSocial Web 2016, Davide Ceolin

Page 3: Lecture 2 Social Web 2017

People have relationships within & across different contexts: family, sports, work, friends

In ‘real world’ it works due to a relatively small set of social contexts & interaction opportunities

http://www.w3.org/2005/Incubator/socialweb/wiki/SocialWebFrameworks2#Social_Graph_Management_Today

Social in Physical World

Social Web 2016, Davide Ceolin

Page 4: Lecture 2 Social Web 2017

Digital social dynamics match physical world: friends are friends in both worlds

There are also significant differences:• # people to interact with, not limited by

distance/time• a person can ‘block’ or ‘manage’

relationships• multiple systems - multiple accounts, i.e.

multi-ple digital representation (personae, personal profiles) of a user

• personae are subject to different social norms

• personae can evolve over time• personae are less (not) limited in scope

Social in Digital World

Social Web 2016, Davide Ceolin

Page 5: Lecture 2 Social Web 2017
Page 6: Lecture 2 Social Web 2017

Accounts on different social networks, utilised in different ways, depending on digital context, e.g.:

• friendly chat on Facebook• professional discussion on LinkedIn• dating on match.com

As a consequence there is a need to manage the user profiles, identities & permissions, as well as the data in them

Multiple SN Accounts

Social Web 2017, Davide Ceolin

Page 7: Lecture 2 Social Web 2017
Page 8: Lecture 2 Social Web 2017

Problems

Maintaining a multitude of online profiles for different contexts is cumbersome and time consuming —> not scalable

Difficult for new social networks to attract new & maintain active members simply because of the effort involved in creating & maintaining “yet-another-profile”, e.g. re-establishing different

aspects of your profile under yet another context

Users often cannot control how their information is viewed by others in different contexts by different social applications

Social Web 2017, Davide Ceolin

Page 9: Lecture 2 Social Web 2017

for managing multiple Social Web profiles“policy-oriented web” architecture to

support trusted services in the longer term

Architecture Needed

Social Web 2017, Davide Ceolin

Page 10: Lecture 2 Social Web 2017

In one system manage your personal information:• home address, telephone number, & best friends • your Friends Profile gets exposed to Hives and Twitter

In another system manage work-related information: • office address, office telephone number, & work colleagues• your Work Profile gets exposed to Plaxo and LinkedIn

Another choice could be to store your entire profile locally with a trusted third party, and then

• your Health Profile can be exposed to health care providers • your Citizen Profile can be exposed to government services

For example …

Social Web 2017, Davide Ceolin

Page 11: Lecture 2 Social Web 2017
Page 12: Lecture 2 Social Web 2017

Opening the Sites

Social Web 2017, Davide Ceolin

Page 13: Lecture 2 Social Web 2017

• Demand from application developers to make use of the amounts of Social Web data & make their applications available to the site members

• Demand from users to reuse data and connections they have already established on other sites, e.g. Google+ download your data, Diaspora* download xml, download photos

• In response: Facebook provided an API & OpenSocial API (former Google OpenSocial API)

Opening the Sites

Social Web 2017, Davide Ceolin

Page 14: Lecture 2 Social Web 2017

• open, decentralized standard for authenticating users that can be used for access control, allowing users to log on to different services with the same digital identity where these services trust the authentication body

• making sure the users are who they say they are• http://openid.net/• Started in 2005 as Yadis (Yet another distributed

identity system)

Social Web 2017, Davide Ceolin

Page 15: Lecture 2 Social Web 2017

http://openidexplained.com/

with OpenID, the process starts with

the application asking the user for

their identity (typically an openid

URI)Social Web 2017, Davide Ceolin

Page 16: Lecture 2 Social Web 2017

OAuth

• it enables users to grant third-party access to their web resources without sharing their passwords

• largely based on: Flickr’s API Auth & Google’s AuthSub • limitations in terms of complexity, user experience,

scale• 3 flows merged into one: web-based apps, desktop

clients & mobile/limited devices; e.g. when Facebook Connect existed - flows for web apps, mobile devices & game consoles

• http://oauth.net/

Social Web 2017, Davide Ceolin

Page 17: Lecture 2 Social Web 2017

OAuth 2.0

the application directly requests a

limited access OAuth Token (valet

key) to access the APIs (enter the

house) on user's behalf. If the

user can grant that access, the

application can retrieve the unique

identifier for establishing the

profile (identity) using the APIs.

• focuses on client developer simplicity - providing specific authorization flows for web & desktop applications, mobile phones & living room devices

• not backwards compatible with previous versions• 6 New Flows• http://oauth.net/2/

Social Web 2017, Davide Ceolin

Page 18: Lecture 2 Social Web 2017

In a nutshell

What’s the difference between OAuth and OpenID?

OpenID is an authentication standard (to prove who you are), Oauth is an authorization protocol (to decide who can do what).

Social Web 2017, Davide Ceolin

Page 19: Lecture 2 Social Web 2017

Figure credits: http://www.phpbuilder.com/columns/sachin_khosla062510.php3

Twitter Employing

Social Web 2017, Davide Ceolin

Page 20: Lecture 2 Social Web 2017

Figure credits https://developers.facebook.com/docs/reference/dialogs/

oauth

Facebook Employing

Social Web 2017, Davide Ceolin

Page 21: Lecture 2 Social Web 2017

Facebook Platform• Graph API - core of Facebook Platform, to read and write

data to Facebook (simple and consistent view of the social graph)

• Open Graph - defining Actions and Objects• Facebook Query Language (FQL) - SQL-style interface to

query the data exposed by the Graph API• Authentication (Facebook Login) - interact with Graph API

on behalf of Facebook users (single-sign on mechanism for web, mobile & desktop apps)

• Social Plugins, Facebook Payments, Ads API, Chat API (via Jabber/XMPP service), JavaScript SDK

• Deprecated: REST API, FBML, and the old Javascript API, Facebook Connect APIs

Social Web 2017, Davide Ceolin

Page 22: Lecture 2 Social Web 2017

• The Twitter platform offers access to the data of more than 200 million tweets a day, via different APIs

• Each API represents a facet of Twitter• These APIs are constantly evolving, and

developers have to be aware of that• http://dev.twitter.com

Twitter APIs

Social Web 2017, Davide Ceolin

Page 23: Lecture 2 Social Web 2017

• the API for leveraging core Twitter objects • enables access to core Twitter primitives including

timelines, status updates & user information, etc.• RESTful API calls to build a profile of a user: user name,

user Twitter handle, user profile avatar & the graph of people that user is following on Twitter

• enables interaction with Twitter: create & post tweets back to Twitter, reply to tweets, favorite certain tweets, retweet other tweets, etc.

REST API

Social Web 2017, Davide Ceolin

Page 24: Lecture 2 Social Web 2017

• a set of tweets with specific keywords,• tweets referencing a specific user, • tweets from a particular user• access to data around Trends

• it’s limited, e.g. index of only recent tweets (6-9 days); no authentication: all queries are made anonymously; some tweets & users may be missing from search results (focus on relevance)

Search API

Social Web 2017, Davide Ceolin

Page 25: Lecture 2 Social Web 2017

• real-time sample of the Twitter Firehose• for data intensive needs, e.g. data mining, analytics research• allows for large quantities of keywords to be specified and

tracked, retrieving geo-tagged tweets, or have the public statuses of a user set returned

• Connecting to the streaming API requires keeping a persistent HTTP connection open (different than the REST API)

Streaming API

Social Web 2017, Davide Ceolin

Page 26: Lecture 2 Social Web 2017

REST vs. Streamin

g

Social Web 2017, Davide Ceolin

Page 27: Lecture 2 Social Web 2017

• open standards-based (e.g. JavaScript, HTML) component model for cloud-based social apps, now converged to W3C SocialWeb WG

• Google initiative (set of APIs) in 2007:• People & Friends API (people and relationship

information)• Activities API (publishing & accessing user activity

information)• Persistence API (simple key-value pair data for

server-free stateful applications)• with Open Social embedded in a site, a site instantly

becomes a social Web site (initially running only at Orkut)• integrated, e.g. OAuth, OAuth 2.0, Activity Streams• http://www.opensocial.org/

Social Web 2017, Davide Ceolin

Page 28: Lecture 2 Social Web 2017

http://www.w3.org/2013/socialweb/social-wg-charter.html Social Web 2017, Davide Ceolin

Page 29: Lecture 2 Social Web 2017

W3C SocialWG

Page 30: Lecture 2 Social Web 2017

W3C SocialWG Candidate Recs.• Activity Pub protocol for modeling activities (e.g., likes, posts) client- server communication

• Activity Streams Core/Vocabulary: JSON-based syntax that is sufficient to express metadata about activities in a rich, human-friendly but machine-processable and extensible manner

• Micropub spec to create content on a server using web or native app clients

• Linked Data Notifications supports sharing and reuse of notifications across applications, regardless of how they were generated.

Social Web 2017, Davide Ceolin

Page 31: Lecture 2 Social Web 2017

Issues related to User Profiles &

NetworksSocial Web 2017, Davide Ceolin

Page 32: Lecture 2 Social Web 2017

• Legal still in its infancy, but courts do rule on new behavior• 4th amendt. to U.S. Constitution - not equipped to address SNS

• e.g., is content on Facebook accessible without a warrant? • Truthfulness of personal profiles - subject of debate• Privacy hard to understand (few read Terms) & misinterpret

‘Friends’

Privacy Concerns

Social Web 2017, Davide Ceolin

Burkholder, M. and Greenstadt, R. Privacy in Online Review Sites. IEEE CS Security and Privacy Work-

shops, 2012.

Page 33: Lecture 2 Social Web 2017

• "privacy paradox" = lack of awareness of the public nature of Internet

• flexibility to handle friends with different conceptions of privacy

• ability to control data flow inside and outside network• realize that sensitive information can be reconstructed

Privacy: Awareness not Paranoia

Social Web 2016, Davide Ceolin

http://www.independent.co.uk/news/world/australasia/paedophile-websites-steal-half-their-photos-from-social-media-sites-like-

facebook-a6673191.html

Page 34: Lecture 2 Social Web 2017

http://mic.com/articles/119602/in-one-quote-edward-snowden-summed-up-why-our-privacy-is-worth-fighting-

for#.0Y3IH2w7J

Page 35: Lecture 2 Social Web 2017

Social Web 2017, Davide Ceolin

Page 36: Lecture 2 Social Web 2017

Fundamental aspects to consider for users of Social Web:• Ownership of their own personal information, including:

• their own profile data• the list of people they are connected to• the activity stream of content they create

• Control of whether & how personal information is shared with others

• Freedom to grant persistent access to their personal information to trusted external sites

http://opensocialweb.org/2007/09/05/bill-of-rights/

Bill of Rights

Social Web 2017, Davide Ceolin

Page 37: Lecture 2 Social Web 2017

http://www.economist.com/blogs/babbage/2012/01/online-privacy

Issues:• burden on companies: it is next

to impossible to rid the web completely of a piece of information: some digital ripples will inevitably remain

• where one man’s data end and another’s begin

• crooks may try to invoke it to have their name struck from unfavorable online coverage

• it is not always clear what counts as reporting on the internet

“Having figured out how to remember nearly

everything, it is about time people relearned how to

forget”

27-01-2012

“Personal data is the new oil of the internet and the new currency of the digital

world.”Meglena Kuneva, European Consumer Commissioner,

2009 Social Web 2017, Davide Ceolin

Page 38: Lecture 2 Social Web 2017
Page 39: Lecture 2 Social Web 2017
Page 40: Lecture 2 Social Web 2017

http://edition.cnn.com/2014/01/15/tech/web/net-neutrality-explained/

Net Neutrality

http://www.truth-out.org/news/item/21659-democrats-introduce-bill-to-restore-fccs-net-neutrality-rules

Social Web 2017, Davide Ceolin

Page 41: Lecture 2 Social Web 2017
Page 42: Lecture 2 Social Web 2017
Page 43: Lecture 2 Social Web 2017

InitiativesSOPA, PIPA, ACTA, CISPA,

TPP• By media industry:• AHRA 1992 - soft• DMCA 1998 - surgical• SOPA/PIPA 2011 – "nuclear protest”

(blackout)• CISPA

• By non representatives• ACTA - 39 countries• TPP – 12 countries

Social Web 2017, Davide Ceolin

Page 44: Lecture 2 Social Web 2017

18 Jan 2012

Social Web 2017, Davide Ceolin

Page 45: Lecture 2 Social Web 2017

Oct 2015

Page 46: Lecture 2 Social Web 2017
Page 47: Lecture 2 Social Web 2017

Social Web 2017, Davide Ceolin

Page 48: Lecture 2 Social Web 2017

Social Web 2017, Davide Ceolin

Page 49: Lecture 2 Social Web 2017

http://tacma.net/

Social Web 2017, Davide Ceolin

Page 50: Lecture 2 Social Web 2017

Installations• Python 2.7• Python packages: json, facebook, uurllib2• JavaScript Info Vis Toolkit (jit.zip)• Facebook Developers appExperience OAuth Query the Facebook Open Graph Visualize your FB social network in various ways

image source: http://www.flickr.com/photos/bionicteaching/1375254387/

Hands-on Teaser

Social Web 2017, Davide Ceolin