How to Register a Twitter App in 8 Easy Steps


One of the reasons that Twitter is so popular, and become what it is today, is due to the huge number of developers who have built apps over the years. Why so many developers? Basically because Twitter has been very easy to work with.

Many social networks and apps have their own interface that programmers can work with. These interfaces are called APIs (short for Application Programming Interface). Unfortunately Twitter have made quite a few changes recently which have made their API a lot more difficult to work with.

On June 11th, 2013, Twitter retired v.1 of their API and stopped offering RSS feeds. This has meant quite a few Twitter apps no longer work, and programmers have been scratching their heads, wondering what to do.

I wrote an article some time back about how to replace Twitter Triggers in IFTTT now that they’re gone. In this article I showed how you could use the RSS feeds that Twitter offered to connect with other apps using the tool IFTTT. Unfortunately from the 11th June, this no longer works- because Twitter retired RSS feeds and now requires that any Twitter app is authenticated first. This is so that Twitter can keep a close eye on the use of it’s API. This suddenly has raised the bar and made it far more complicated for developers to play with Twitter’s data

I will show you how to get your RSS feeds back as well as do some other really cool things with Twitter in a future article. However, for now, I am going to show you how to start the process off- register your Twitter app. And I am going to attempt to make this as easy to understand as possible. I hope I succeed!

 

#1 Visit the Twitter Developers’ Site

Twitter Developer website

 

The first thing you need to do is head on down to dev.twitter.com. In order to create an account, all you need to do is click on the “Sign In” link at the top right.

#2 Sign in with your Twitter Account

Twitter Developers Sign In

Next, sign in with the Twitter account you want to associate with your app. You do have a Twitter account don’t you?!

#3 Go to apps.twitter.com

Manage your Apps

Once you’re logged in, you will need to visit Twitter’s app website. This can be found at apps.twitter.com (it can also be found by clicking “manage your apps” in the footer of the Twitter Developers site.

#4 Create a New Application

 

Create a Twitter App

If you are new to the Developers site you won’t see any applications registered. Either way, it’s time to create our first application. To do this, click on the big “Create a new application” button.

#5 Fill in your Application Details

create an application

It’s been easy so far, but this screen often makes people confused. Don’t worry, it’s a lot easier than you think…

  • Name:
    First of all you need to give your app a unique name (one that no one else has used for their Twitter app). Since we’re going to be an creating app for personal use and not one that other people can register and use, just put your domain name in or perhaps even your name.
  • Description:
    You don’t have to worry much about the description- you can change this later, but it can help to distinguish this app from others that you might create in the future. I’ve put “a set of Twitter tools for personal use”.
  • Website:
    Put your website in the website field. It’s supposed to be your application’s publicly accessible home page. However, if your app is for personal use, this isn’t really applicable. I would just enter the website address where the app will be hosted.
  • Callback URL:
     I would ignore the Callback URL field. If you are allowing users to log into your app to authenticate themselves, you’d enter the URL where they would be returned after they’ve given permission to Twitter to use your app.

Once you’ve done this, make sure you’ve read the “Developer Rules Of The Road” blurb, check the “Yes, I agree” box, fill in the CAPTCHA (don’t you just love them) and click the “create your Twitter Application” button. Hurrah!

#6 Create Your Access Token

Your Access Token

You’ll then be presented with lots of information, but we’re not quite done yet. We now need to authorise the Twitter app for your Twitter account. To do this, click the “Create my access token” button. This takes a few seconds, so if you don’t see the access tokens on the next screen, you may have to refresh the page a few times.

This access token will allow your Twitter application to read Twitter information. You’ll be able to get data of your tweets, mentions, lists and more. However, if you want to do more advanced stuff like sending tweets or deleting, you’ll need to change your access type.

#7 Choose what Access Type You Need

application type

As I mentioned, the default access type when you create a Twitter app is read only. My recommendation is to keep it like this unless you really want to be able to have the app delete or write data (for example sending tweets or deleting direct messages). For our first Twitter app we will only need read only access, but so that you know for future, in order to change the access type, you need to click on the settings tab at the top of the screen. Once you do this, scroll down to where it says “Application Type”. Change the access type to “Read and Write” to be able to read Twitter data and send tweets and select “Read, Write and access direct messages” if you want to also have access to your direct messages.

#8 Make a note of your OAuth Settings

oAuth Settings

Once you’ve done this, make a note of your OAuth settings. You will need these long horrible strings of characters for your Twitter app. The ones you will need are:

  • Consumer Key
  • Consumer Secret
  • OAuth Access Token
  • OAuth Access Token Secret

It goes without saying that you should keep these secret. If anyone was to get these keys, they could effectively access your Twitter account.


The Next Step- How to build your first App!

Armed with your Twitter app data, you can now go about creating your first Twitter app. I’ve written how to do just that in the next article called Build Your First Twitter App Using PHP in 8 Easy Steps. You will be able to access your tweets, mentions, direct messages and filter through them.

View Next Step


Want in on the latest tools, tips, hacks & techniques?

Get the Seriously Social Newsletter for Free!

You will receive an email no more than once a week.


About Ian Anderson Gray

Ian is a speaker, coach, social media consultant, web developer & Partner of Select Performers. In real life he is a husband, dad and geek and is rather partial to tea, coffee & Indian cooking. Find out more



The Seriously Social Community

What do you think? Join the fun & Let me know below...

Leave a Reply

61 Comments on "How to Register a Twitter App in 8 Easy Steps"

avatar

Sort by:   newest | oldest | most voted
sompati
Guest
15 days 12 hours ago

It’s very nice and helpful post here for create twitter app . Thanks for step by step details.

Pat
Member
Pat
2 months 20 days ago

I don’t get the part with Website URL
What I have to enter there exactly?

Aziz
Guest
Aziz
3 months 15 days ago

Hi..
can u please tell that how i can build this app in ruby on rails instead php ??

Raghava
Guest
Raghava
5 months 10 days ago

HI…

I am getting below error could you help me .
“Whoa there!
The request token for this page is invalid. It may have already been used, or expired because it is too old. Please go back to the site or application that sent you here and try again; it was probably just a mistake.”

Lalinda Sampath
Guest
Lalinda Sampath
5 months 10 days ago

Can’t I run a twitter app on my localhost? Currently i don’t have any web space and domain.

puneet
Guest
puneet
8 months 28 days ago

Is It compulsory to enter a website name while filling the form?
i do not have any website what should i do?
please reply

Isabel
Member
Isabel
9 months 7 days ago

I am trying to create a Twitter application and have followed your useful steps. But it keeps telling me that it has failed validation as it is not a valid URL format even though I am using the URL of the website I am trying to set up.

Any thoughts?

hassan
Guest
11 months 17 days ago

Help me how to make twitter application please. Send me full method i want to make an application for twitter to send tweet from my website to my twitter account,,,, Please help me….
many thanks in advance

Samuel
Guest
Samuel
1 year 1 day ago

I have activated my twitter I am happy like AAAA!

tariq
Member
tariq
1 year 1 month ago

hello ian , you look like a very learned gentleman with all this python stuff.

i am currently doing a little project with a friend of mine and we are trying to use twitter to retrieve tweets with a given hash tag and display them on a computer screen.

if you can guide us in any way that would be a great help.

i have already joined twitter but am having difficulty deciding which authentication to choose in https://dev.twitter.com/oauth/overview.

Thanks

trackback

[…] to do in order to access Twitter’s API is create a Twitter App. You can do that here. A check iag.me’s tutorial blog post on setting up your Twitter […]

Elias
Guest
Elias
1 year 2 months ago

Got it working. Thanks.

Elias
Guest
Elias
1 year 2 months ago

Thanks for the tutorial. Unfortunately I can’t get it to run.
I copied and pasted your exact code and I get this message below.
PHP Notice: Use of undefined constant errors - assumed 'errors' in C:Inetpubwwwrootthingzinetwitter1index.php on line 19

The line in the code is this one:
if($string["errors"][0]["message"] != "") {echo "Sorry, there was a problem.Twitter returned the following error message:".$string[errors][0]["message"]."";exit();}

Any ideas?
Elias

leesf456
Guest
leesf456
1 year 3 months ago

Thanks for this,but i encountered a problem,i am in china,when i create a new application, i need to add my phone to get the consumer key/secret, but i cannt receive the message,what should i do?

Azzahra Pulchra Puella
Guest
Azzahra Pulchra Puella
1 year 4 months ago

Thanks for this

trackback

[…] First you will need a Twitter Account. You can create one by visiting http://www.twitter.com. Then you will have to create a Twitter Application. In order to create a Twitter App follow the directions from thiswebsite: http://iag.me/socialmedia/how-to-create-a-twitter-app-in-8-easy-steps/ […]

trackback

[…] their developer portal at apps.twitter.com (if this step is unclear to you, please refer to e.g. this guide). Third and last, you can download the complete source code from: […]

Image Masking
Guest
1 year 11 months ago

I was searching for where to find the consumer key and now got it. Thank you for the detailed steps.

Binita Bharati
Guest
Binita Bharati
1 year 11 months ago

Saving this link for reference. Thanks for writing this up !
Although now, “Create New App” is accessible from “Manage My Apps” link on https://dev.twitter.com/docs

trackback

[…] users to grab its data like it used to. You just need to sign in with a Twitter account, click a button to create an App. (You can call it anything; it doesn’t matter.) Then, you are provided keys, a series letters […]

Olalekan
Guest
2 years 3 months ago

Great one. summed up in this: I was blinded and now I can see!

trackback

[…] here. If you have any question about creating Twitter application, please follow this good article How to register a Twitter APP in 8 easy steps to create the app step by step. twitter is a very popular Python package, you can use easy_install […]

Mike
Guest
Mike
2 years 6 months ago

Ian, Once this app has been associated with a specific twitter account is there anyway to allow it to be associated
with another twitter account?

Also is there anyway to change the domain name in the app once it has been created?

Robert Paulson
Guest
Robert Paulson
2 years 7 months ago

Hi. Great info — most straightforward I have found. Two questions:

1. is there much lag between updating info in the app area and it reflecting the changes? (Like if I change from Read only, to something else)?
2. can I run a grab (using this info with your other blog on grabbing tweets in PHP) successfully locally, or does it have to be on a live site?

I ask because I am getting served a blank screen even though I have quadruple-checked that my oAuth variables are correct.

Thanks!

Michele Hudnall
Guest
2 years 7 months ago

Awesome!!! Thank you soooo much!

trackback

[…] using it will be you and the app’s details will be stored in the script. Follow the steps in my How to Create a Twitter App in 8 Easy Steps and you’ll end up with these […]

trackback

[…] To authenticate it to your Twitter account, you need to register a Twitter app and get your access tokens as I say in the “How do I install Twools section?” above. It’s really easy to do, and I’ve written an article going through the steps– http://iag.me/socialmedia/how-to-create-a-twitter-app-in-8-easy-steps/ […]

trackback

[…] In my last article I explained the steps involved in setting up a developers account at Twitter and registering your first app– making this as easy as possible. Well, it’s time to get your hands dirty and actually build that app! […]

Dora
Guest
Dora
2 years 10 months ago

Hi, I just activated the Realy Simple Twitter Widget which was as simple as promised. It pulls the tweets on the websitem, but I must have done something wrong because the new tweets don’t appear in the box. http://swisslinked.com/test
Can you please advise..? Thank you!

Dora
Guest
Dora
2 years 10 months ago

Sorry, too impatient. It is working perfectly, just needed some time 🙂

trackback

[…] eventueel How to create a Twitter app in 8 easy steps voor begeleidende […]

Kay Patterson
Guest
3 years 1 month ago

dead keen on reading the second part

awkwrd
Guest
awkwrd
3 years 1 month ago

hey, where’s the second part? thanks.

wpDiscuz