twitter. twitter is a social networking and micro-blogging service that enables its users to send...

37
Twitte r

Upload: charlene-ray

Post on 29-Dec-2015

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates

Twitter

Page 2: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates

Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates.

Page 3: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates

Lightweight micro-blogging platform• Short (<140) text messages to followers

River of updates from those you follow (friends) Some conventions:

• d username = direct message• @username = reply

– Unlike DMs, replies are public ser determines whether to see replies from folks

not followed• #tag = hashtag (twemes.com, hashtags.org)

Multiple modes of access• Mobile (SMS or Mobile Web)• Web Browser• Other Client (Using API)

Page 4: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates

@ reply: A comment aimed at one user, but visible to the public.

DM: A direct message sent in private to another user.

Page 5: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates

Retweeting: Sharing someone else’s post. Often abbreviated “RT.”

Page 6: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates

?…

!…

!…

Questions for your followers

Eg: “anyone sick of Facebook, yet?”

Page 7: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates
Page 8: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates
Page 9: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates

Raise awarenessOffer proactive customer serviceAnswer questionsPromote events, products, services

Page 10: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates

Use search.twitter.com to search for their brand

When mentioned can take action on items

Publicly respond when possible to show openness

and responsiveness.

Others will generally have had the same question

People say things faster on twitter than they

would via email or phone

Page 11: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates

Who is on TwitterStarbucks, Southwest Airlines, Dell, Zappos, Little

Debbie

Page 12: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates

Using twitter content to make something unique, different, or complimentary

Page 13: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates
Page 14: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates
Page 15: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates
Page 16: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates
Page 17: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates

Most access to Twitter is via the API• 10x more than the Web interface• Desktop clients like twhirl, twitterrific• Mobile clients TinyTwitter, PocketTweets, iTweet

Well documented in Google Group (http://groups.google.com/group/twitter-

development-talk/web/api-documentation) Provides access to core data simply

• XML, JSON data formats• RSS, ATOM syndication formats

Basic http authentication where needed Rate limited

• On reads (gets): • Unlimited writes (posts)

Page 18: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates

Status Methods:• public_timeline• friends_timeline• user_timeline• show• update• replies• destroy

Account Methods:• verify_credentials• end_session• archive• update_location• update_delivery_device

User Methods:• friends• followers• featured• show

Direct Message Methods:• direct_messages• sent• new• destroy

Friendship Methods:• create• destroy• exists

Page 19: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates

Use the Twitter API to fake “group” functions

Create a new “group” account Follow back folks who follow that account When those users tweet with a hashtag,

repost that tweet so that all followers see it, prefaced with the username of the original poster

Could have sent direct messages instead Hashtag could be the name of the account

but doesn't have to be

Page 20: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates

Whole thing runs on a cron job• Rate limiting – 70 requests in 60 minutes• Unlimited posting

Get friends_timeline.xml Returns the 20 most recent statuses posted in the last

24 hours from the authenticating user and that user's friends.

curl -u email:password http://twitter.com/statuses/friends_timeline.xml

Loop through posts in friends_timeline• Remove the group account itself (avoid loop!!)• Find all tweets in timeline beginning with hashtag• Put in database, with datestamp and id

Pull all “un-retweeted” tweets from database Post those tweets, updating “retweeted” status as they

post

Page 21: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates

Source code:

http://www.openparenthesis.org/code/twitter-api

Open Source, GPLv3 license

Uses:

• PHP 5 (SimpleXMLElement rocks)

• MySQL DB

• cron or equivalent (scheduled command line

invocation)

• cURL

Page 22: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates
Page 23: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates

Big Tome

From books

Page 24: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates

Big Tome

pdfTo lightweight documents

Page 25: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates

Big Tome

pdf

My blog

To blog posts

Page 26: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates

Big Tome

pdf

My blog

To text messaging

Page 27: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates

Big Tome

pdf

My blog

Welcome to the microblogging

revolution

Page 28: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates

My blog

Page 29: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates

No titlesMy blogMy blog

Page 30: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates

No titlesMy blogMy blog

No categories

Page 31: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates

No titlesMy blogMy blog

No categories

Page 32: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates

No titlesMy blogMy blog

No categories

My blog

Tighter text

Page 33: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates

My blogMy blogMy blog

Page 34: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates

According to Google Trends, site traffic has mushroomed over the last year

Page 35: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates

Mobile internet is still small but growing fast

Page 36: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates

Conclusion : make it simple is beautiful!

Page 37: Twitter.  Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates