Skip to content

How to Register a Twitter App in 8 Easy Steps

Twitter Power Tools

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

129 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Mike

Hey Ian, this is a really thorough and informative tutorial. Great work.

Mike Jones

Thank you for this informative Read! I haven’t created a twitter app before but I think should give it a try now.

save from web

Is It compulsory to enter a website name while filling the form?

Rupanjan

Nice article, we are trying to build an app which can post tweet from our website. You article is the first step to it.

Shrik

Hi, the steps have changed lately. they ask for detailed business case to authorise app development and allow access to the development account.

Oscar Nieto

8 easy step for twitter account register that is very helpful and easy for beginner person who want to use twitter account.

Monirul

Really its easy now. thanks a lot

Sri

Hi…I have created a Twitter development app and hosted in my own demo website..but the app is not getting hosted in my website
How long it will take for a newly created Twitter app to get approved

Heto Chakma

Excellent post! This article is very informative and useful also help me a lot. Thanks for sharing.

Ceci

Hi Ian, Thanks so much for such an informative article! But what if I applied to get a Twitter developer account and they denied/rejected my application! What are my options now?

jamil

thank you for this information
how can i change This name please

J R

Thank you for your tutorial.

Can you please help me to understand why my app is not authenticated?

‘code 32: could not authenticate you’

Steps done:
1. Created an app on developer.twtitter.com and received the four different security keys.
2. The app has read and write access permissions configured there.
3. For the URL, I used http://www.test.com, since I don’t have any domain and this is for hobby purposes to write my first Twitter bot.
4. The code was written in node.js and I just can’t seem to get authenticated.

Can you please help to debug this as after reading and testing different things (also regenerated the keys) I just can’t get beyond this step?

############################
Code:

//app.js

var Twitter = require('twitter');


var T = new Twitter({
	consumer_key: 'qxxxxxxxxxxxxxxxxxxx', 
	consumer_secret: 'Zxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 
	access_token_key: 'xxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 
	access_token_seret: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
})

console.log('Start');

T.get('account/verify_credentials', {
	include_entities: false,
	skip_status: true,
	include_email: false
}, onAuthenticated)

function onAuthenticated(err, res) {
	if (err) {
		console.log(err);
		throw err
	}

	console.log('Authentication successfull.  Running bot...\r\n')
}

console.log('End');

#########################

$ node app.js 
Start
End
[ { code: 32, message: 'Could not authenticate you.' } ]

../twitter-bots/app.js:27
		throw err
		^
[object Object]
Ali Hassan

Nice post it will be so helpful that how to create twitter app easy steps ,and also informative

Anilkumar Amrutham

Hi,
For our SAAS based application we need more than 10 apps in account. with 1 developer account I can able to create only 10 apps. Is there any way to create more than 10 apps. I mailed to twitter support. Still i didn’t get any information from them. If you have any idea please let me know. It will be really helpful for us.

Thanks,
Anilkumar A

Alex

Hi, Ian! Can you help me?
I created twitter app more than three weeks ago. Now I see only “Application under review” on https://developer.twitter.com/en/apps. Maybe I did something wrong?

Also,
step #1
link dev.twitter.com redirect to https://developer.twitter.com/
step #3
On https://apps.twitter.com/ I didn’t find “Manage Your Apps”
step #4 and so on
they prevent creating app from “Application management”

Thank you

Q_Chung

Thanks Ian! This is helpful as I am trying to create a developer account. It looks like they have changed the process (perhaps in Beta at the moment?). Is there a way to text chat with someone at Twitter? My problem is kind of weird, and can’t move forward due to this snag. It says I need to associate a phone number with the account. To verify it, I’m supposed to receive a code by text message, but it never comes through. Have you seen something like this?

Q_Chung

Thank you! Please know that you are helping so many of us (naive users) to move up to the next level, and we appreciate your dedication to enlightening us.

VrqM

Hi, Ian! Did you see this: [Twitter] New developer requirements to protect our platform (https://blog.twitter.com/developer/en_us/topics/tools/2018/new-developer-requirements-to-protect-our-platform.html)? Will you write new tutorial for creating twitter apps?

Bipin singh

Sir, i am not able to create application in twitter .would u plz help mee.

vinod

Thank you very much for this easy steps and I have created them successfully. I’ve implemented the consumer key/secret key, OAuth access token/secret into my java project. the project was running and getting authentication from twitter but it was not returning to my local app., I think I have mistaken in callback URL. Can you pls tell me how to give call back URL to my localhost.

rishika

as soon as i fill the create an application form, i get the message “Your application has been created. Please take a moment to review and adjust your application’s settings.” below that, it says “you dont currently have any twitter apps” , instead of the detailed information and the tabs etc. Frustrating

rishika

i finally created my access token after filling the form around 20 times. phew. i think they really wanted me to type a website name starting with https:. i was typing http://www.placeholder.com earlier.

Ryan Chapman

Hey Gray,
I was searching on the google, youtube, yahoo, bing and many other search engine and coding resources for where to find the consumer key. Finally, i have got it from your blog. Thank you for the detailed steps.

A. Crowe

Hey, Thanks! Thanks for the first explanation of Twitter app which doesn’t think I know everything there is to know in universal fashion! No matter how many of these I’ve read no one ever took the time to explain what the Token did. I only wish one of these had told me that I shouldn’t have my Twitter token tattooed on my forehead.

[…] not go into the detailed steps. You can use this tutorial to set […]

dharmesh

very useful post…thanks

Pasquale

Hi, great article.
I developed an simple app for auto follow my follower. I wrote it in python and test it running the .py script from my computer. It seems running well. My problem is that I don’t know how to “installl” it on twitter so that it can run automatically. Could someone help me? Thanks in advance.

judson

i dont have website what can i do

Image Masking

As an enthusiast designer, I think it’s most useful and popular article about Twitter apps. There are a huge number of developers who offered to connect Twitter apps using tools. I hope this sophisticated post helps them to figure out how easy it’s work.

karim hardani

Thanks 🙂

Robert Smith

Wow its great information . i extremely enjoyed your article. This article is very helpful for me . Apptunix is software development company so its really helpful for me to build an app .

Thanks with sharing us.

Savani
Billy Gee

Quick n Easy tutorial.. thx!

Ant Forshaw

I have a development site which is showing 3 most recent Tweets in the footer, and that works fine. I’ve just put a copy of the site live at the main URL, and that is showing that there are 3 Tweets, and when they were made, but the text from the posts isn’t showing on the new live site, but they do on dev.. Most peculiar. Would having a different URL in the app creation page cause this issue?
The only other difference between the sites (apart from having different URLs) is that the live site is HTTPS where the dev site is HTTP. Are you aware of any problems with using secure connections and Twitter’s api?

Umar Masoo

Hi,
Please help in sharing website post to twitter wall with post image and title using twitter API. Thanks

mamun

I am a graphic designer. Also i have a IT firm. I read this post. This is very useful for me.Thanks fot this post.

Luckey

Hi Ian, i tried above steps to create new application but 1. I dont see captcha 2. After filling up all other fields and click on create twitter application, i am redirected to access denied page. Not sure what is missing, please help.

Luckey

This has been resolved, looks like there was an issue when i created the app.

Alamia

Amazing, this is a great article! I did enjoyed reading it, keep your post

sompati

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

Pat

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

Pat

Thank you for your feedback and help! I already figured it out, that the Callback URL is needed too! But I got another problem! After logging in at Screen1 the application should open Screen2, but it chrashes the application! I hope you can help me!

Thanks and good luck!
~Pat

Aziz

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

Raghava

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

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

puneet

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

Fred

when you say using a social profile as the website, can I use G+ or a twitter account?

Isabel

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?

Isabel

Hi Ian – no, I am trying to create a new webiste, using a WordPress theme. My domain name provider is hosting the site for me.

Isabel

That’s a good idea – thanks I will investigate!

hassan

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

I have activated my twitter I am happy like AAAA!

tariq

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

Elias

Got it working. Thanks.

Elias

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

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?

leesf456

ok,thank you very much,i will try again.

Azzahra Pulchra Puella

Thanks for this

Image Masking

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