Simon Willison’s Weblog

Items tagged quora, twitter in Nov

Filters: Month: Nov × quora × twitter ×


How do I put my Twitter picture on my company’s about page so that it automatically updates?

This used to be pretty easy, but Twitter made it a lot harder with their APIv1. You need to do authenticated API calls to access their image API now, which means it’s best to set up a cron job and cache the correct URL.

[... 125 words]

How did The Voice implement Twitter voting?

You don’t need full firehouse access to implement this—you can use the statuses/filter API to get a feed of tweets that match a specific hash tag: https://dev.twitter.com/docs/api...

[... 63 words]

What are the ways to get your links expand in Twitter inline?

This feature is called Twitter Cards - you need to add some metadata to your pages, then apply to Twitter for inclusion in the program (they currently operate a whitelist of sites). See the documentation for more details.

[... 57 words]

Is it possible to link to a Twitter user’s page with their user_id instead of their screen name?

You could always build your own URL to do this as part of your own application—something like http://your-twitter-app.example.... which does a Twitter API lookup for that user and then redirects to http://twitter.com/their-twitter.... You can cache the ID-to-screen-name lookups that you’ve made in the past (not forever though, remember people occasionally change their screen names).

[... 98 words]

Does Twitter use a 3rd party software for rate limiting their APIs? If yes, who’s the 3rd party?

I wrote up a technique for doing simple rate limiting using memcached a while ago, which I later found out was somewhat similar to how the Twitter API does it.

[... 56 words]

Types

Years

Tags