Terence Eden. He has a beard and is smiling.

Terence Eden’s Blog

Theme Switcher:

Displaying Twitter Photos via Entities

· 3 comments · 200 words · Viewed ~1,909 times


Twitter has announced that it will soon open up a native photo sharing service. Rather than using an external service like Embed.ly to retrieve thumbnails, all the data is embedded within Twitter Entities. So, if you request a status using "include_entities=true", you will be able to grab the image and display the thumbnail using the following code. function twitter_get_media($status) { …

A (Minor) Twitter Privacy Bug?

· 1 comment · 500 words · Viewed ~204 times


The Twitter logo.

Quick Summary Twitter's secure API hides the contents of the tweets you are reading. But it doesn't hide the images of those you converse with. Raised as Issue 2175. A Bit More Detail Twitter has a secure (HTTPS) and insecure (HTTP) API. When calling the secure API, all the content of the returned message (tweets) are encrypted. Eavesdroppers only see the cipher-text - essentially garbage. …

Dabr, Dabr, Everywhere...

· 400 words · Viewed ~703 times


I contribute code to Dabr - a mobile twitter client. It's a great project to keep my hand in the world of PHP, APIs, SVN, and all the other tools that are essential to the modern online world. Dabr's strength for developers is two-fold Dead easy to install. Unzip the files, fill in your API key(s), upload, done. It's under an incredibly permissive Open Source MIT License. Essentially …

#WeLoveBaskers

· 5 comments · 1,350 words · Viewed ~257 times


A fist emerges from a computer screen and punches the user.

I have twice been subject to some very inept blackmail over a posts I had made on twitter. The first time was after I called a particularly nasty company "twunts" over a dispute I'd had with them. I'll be the first to admit that it wasn't a particularly mature reaction - but I'm not sure it warranted taking a screenshot of the tweet, threatening to show it to the CEO of the company I worked…

OAuth Will Murder Your Children - for one week only!

· 2 comments · 300 words


Why doesn't Twitter's OAuth let me specify the length of time a 3rd party has access to my account? Take a look at all the crap you've given access to your Twitter account. Are you ever going to use that "See how many of your friends like cheese" app again? No. Long time readers will know that I have some severe usability and security concerns with Twitter's OAuth implementation. See also my …

Share Android Apps on Twitter (or anywhere else)

· 3 comments · 250 words · Viewed ~2,560 times


The Twitter logo.

I attended the Mobile Monday meeting "200,000 Apps - Where's Mine" last night. One thing that became clear is that apps don't do a very good job of promoting themselves. One crippling problems with most app stores is that there's no (easy) way to share an app with a friend. Here's some basic code for an Android app which will post the URL of your app to Twitter. Stick it in a button or menu…

Twitter API - pagination and IDs

· 11 comments · 550 words · Viewed ~5,897 times


The Twitter logo.

Looking for some Twitter API help.  Bit of a geeky post, this... Pagination is the act of splitting data into logical  pages. Suppose I had a list of item, numbered 0 - 99.  If I want 20 items per page, it's trivial to see that pagination looks like: p1 = 0-19 p2 = 20-40 p3 = 41-61 p4 = 62-82 p5 = 83-99 If I wanted to start at, say, page 55 - pagination would look like: p1 = 55-75 p2 = 76-96 …

HOWTO: Twitpic and OAuth

· 25 comments · 700 words · Viewed ~5,189 times


Logo of TwitPic.

I am no longer confused! Here is a quick tutorial in how to post images to Twitpic and Twitter when using OAuth. I'm indebted to Steve Corona of Twitpic, for his help with this. You can see the full code on Dabr's Google Code page. First of all, you'll need to have enabled OAuth for your Twitter client. I use Abraham's excellent OAuth libraries for PHP. This tutorial assumes you already…

Twitpic OAuth - I'm Stuck

· 13 comments · 300 words · Viewed ~3,313 times


Logo of TwitPic.

Twitpic has implemented an OAuth API. No more having to hand out passwords to all and sundy. Only I'm too much of a dunderhead to get it working. Perhaps it's a combination of heatstroke or this rotten head-cold, but I just can't see what I'm doing wrong. Any help much appreciated. The easy bit. It's easy to post the data to Twitpic $media_data = array( 'media' =>…

Bugs in Twitter Text Libraries

· 5 comments · 400 words · Viewed ~227 times


The Twitter Engineering Team have a set of text processing classes which are meant to simplify and standardise the recognition of URLs, screen names, and hashtags. Dabr makes use of them to keep in conformance with Twitter's style. One of the advantages of the text processing is that it will recognise that www.example.com is a URL and automatically create a hyperlink. Considering that dropping…

Dabr - Reply to all and Geotagging

· 350 words


People have been very excited to see some new functionality in Dabr - the mobile Twitter client I develop for. But what is it and how does it work? @@ and geotag Reply to All The @@ symbol allows you to reply to all the people mentioned within the tweet. It only shows up on tweets which mention other users - so you should only ever see it when it can be used. Hitting @@ on the above tweet…

The Perfect Twitter Spam Attack?

· 2 comments · 700 words · Viewed ~233 times


This morning, when I logged on to Twitter, I saw a user who I didn't recognise tweeting away in my timeline. I wracked my brains thinking about how they could have gotten in there before I realised it was a long-dormant friend who had changed their name and avatar. But, in thinking about how a spammer could infiltrate one's timeline, I think I came up with a fairly bullet-proof method to spam…