Download - what is-twitter
![Page 1: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/1.jpg)
![Page 2: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/2.jpg)
Twitter is a social networking and micro-blogging service that enables its users to send and read other user’s updates.
![Page 3: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/3.jpg)
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: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/4.jpg)
@ reply: A comment aimed at one user, but visible to the public.
DM: A direct message sent in private to another user.
![Page 5: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/5.jpg)
Retweeting: Sharing someone else’s post. Often abbreviated “RT.”
![Page 6: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/6.jpg)
?…
!…
!…
Questions for your followers
Eg: “anyone sick of Facebook, yet?”
![Page 7: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/7.jpg)
![Page 8: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/8.jpg)
![Page 9: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/9.jpg)
Raise awarenessOffer proactive customer serviceAnswer questionsPromote events, products, services
![Page 10: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/10.jpg)
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: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/11.jpg)
Who is on TwitterStarbucks, Southwest Airlines, Dell, Zappos, Little
Debbie
![Page 12: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/12.jpg)
Using twitter content to make something unique, different, or complimentary
![Page 13: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/13.jpg)
![Page 14: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/14.jpg)
![Page 15: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/15.jpg)
![Page 16: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/16.jpg)
![Page 17: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/17.jpg)
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: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/18.jpg)
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: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/19.jpg)
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: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/20.jpg)
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: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/21.jpg)
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: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/22.jpg)
![Page 23: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/23.jpg)
Big Tome
From books
![Page 24: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/24.jpg)
Big Tome
pdfTo lightweight documents
![Page 25: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/25.jpg)
Big Tome
My blog
To blog posts
![Page 26: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/26.jpg)
Big Tome
My blog
To text messaging
![Page 27: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/27.jpg)
Big Tome
My blog
Welcome to the microblogging
revolution
![Page 28: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/28.jpg)
My blog
![Page 29: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/29.jpg)
No titlesMy blogMy blog
![Page 30: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/30.jpg)
No titlesMy blogMy blog
No categories
![Page 31: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/31.jpg)
No titlesMy blogMy blog
No categories
![Page 32: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/32.jpg)
No titlesMy blogMy blog
No categories
My blog
Tighter text
![Page 33: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/33.jpg)
My blogMy blogMy blog
![Page 34: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/34.jpg)
According to Google Trends, site traffic has mushroomed over the last year
![Page 35: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/35.jpg)
Mobile internet is still small but growing fast
![Page 36: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/36.jpg)
Conclusion : make it simple is beautiful!
![Page 37: what is-twitter](https://reader035.vdocuments.us/reader035/viewer/2022070316/5557b387d8b42a4a5d8b51b8/html5/thumbnails/37.jpg)