Twitter app idea: Urdu poetry meme

Just hit an idea to write a Twitter bot or a meme that will collect Urdu poetry tweets specified by a hashtag stores it in it’s database. And people who will follow that account will get a poetry tweet daily. Why it’s looking interesting to me because I can’t find such account who shared poetry in Urdu script. That’s appealing rather having it in Roman which can be seen in abundance. Will do a quick POC on it, have to see Twitter API after ages since I left exploring it.

• • •

Fetch Twitter friends or followers through REST API in Java

I was playing around with fetching Twitter followers and friends with Twitter4J. But it was taking time to do that. So I code it with using REST urls given by Twitter. It fetches all your friends or followers. Depending upon your application that you want one list or you want to use paging. But I did it in one go. Performance wise, it will be trouble of fetching say 2000 followers or friends.

• • •

How to use and retain Twitter4J OAuth access token

I  was stuck in a problem that how to re use access token, once user has authenticated by Twitter (on call back URL). I got it working. There was problem in my understanding about request token vs access token. When user first time comes on call backed URL. I take request token and token secret from session and prepare the access token. Here the place where I was confused.

• • •

How to register an app with Twitter

If you want to develop a Twitter app. You need to register your application with Twitter. That means you should have your production URL ready before you think to start your development. When you finished with registration, you will receive consumer key and consumer secret. These unique credentials will help your app to interact with Twitter. No big deal. You can visit your all registered applications on http://twitter.com/oauth. And to register for new app you need to visit http://twitter.com/apps/new

• • •