Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

For Twitter , how to create test user accounts?

Facebook allows you to create test user accounts that can only be used for testing purpose.

Does Twitter provide similar functionality ? I don't want to get my application blacklisted for creating fake user accounts; do I have to use my real user account for testing my application ? What strategies are your using for testing application with Twitter ?

like image 666
user193116 Avatar asked Aug 23 '11 17:08

user193116


People also ask

How do I Create a Twetter account?

Go to twitter.com/signup. Click the sign up button. A Create your account pop up box will appear, and you'll be guided through our sign up experience. You'll be prompted to enter information such as your name and phone number or email address.

How do you Create an alt account on Twitter?

Tap whichever icon you have. Tap on the down arrow icon in the header. From here you can Create new account or Add existing account. Once you've added your additional account, you can toggle between accounts by tapping the downward-facing arrow in the header.

What is authenticated user in Twitter?

All messages sent on Twitter are between two User entities. For authentication purposes, each user has an Access Token (API key) and Access Token Secret (API secret) associated with it. Twitter app - A Twitter app can be created via the Twitter app dashboard page with an approved developer account.


2 Answers

As far as I know, there is nothing in Twitter's rules against creating account (unlike Facebook, where with the exception of test accounts, you're not allowed to create multiple accounts for testing purposes). So, you can just register the account like you normally would.

You might want to take a look at this post for some other tips for test accounts (hiding your tweets, deleting the account when you're done testing, etc.).

like image 123
EdoDodo Avatar answered Oct 01 '22 11:10

EdoDodo


I'm currently creating a Twitter application and here are some of the strategies I'm using.

  • I create my accounts in combination with Gmail addresses. If I create a gmail account as user [email protected] , I secure the Twitter name @bob on Twitter. That way it's kind of hard to forget where to email a lost password. I don't go crazy, as I don't need 100's of test accounts but I do have up to three.

  • I log on to my test accounts using Chrome because it will automatically recall your password as soon as you type in your Twitter name on the home page. That way it is easy to switch between them, but note that I find it hard sometimes to know which account is actually active because I'm constantly looking at other profiles. This gets confusing if I don't constantly look at the logged in user icon indicator.

  • Never, ever re-tweet anything unless you absolutely have to for a test case or use hash-tags unless for a test case. Unbelievably even on a completely un-publicized account, I had a few surprise Twitter users in my DB a few seconds after I re-tweeted a link.

  • on Localhost, close all your other browser windows while your testing. Especially if your calling the API through AJAX. You never know which sites you have open whom also call the Twitter API through AJAX, and this can seriously screw with your tests and rate limits. Especially when your developing live.

  • I would not recommend protecting your tweets. It's too limiting for most use cases.

  • For my site, I need to place a link in the tweets. Twitter will not allow live links to http://localhost so you have to plan around this and have a live test server sooner then you may anticipate.

like image 28
Chamilyan Avatar answered Oct 01 '22 12:10

Chamilyan