Tips to Increase Twitter Followers and Detect Twitter Data


Twitter is gaining popularity ever since its launched. Now, website owners have started using the twitter power and they are using twitter not just for updates but for marketing purposes as well. So, how will you reap any benefits from twitter? The answer is simple, More Twitter followers means more exposure to your content. Fine, but how the heck you will have more followers? Read the complete article to find out about it.

You can detect the twitter users if they are logged in while they are surfing your site and you can ask them to tweet your content or even ask them to follow you. Whats important here is, you are asking the Visitor to follow you by his twitter user name. Lets take an example if user (hurricanesoft) which is a twitter user name of mine is surfing your website, you can easily detect and ask me to follow you or tweet your content by my user name like Welcome hurricanesoft, would you mind following me and tweeting my content. I will do the same for you if needed. Thanks. This is very simple example and it’s uses can be of unlimited ways.

Now, lets write few line of Javascript code to acomplish this task

The above code won’t work unless the user is authenticated, Twitter’s API will prompt an authentication dialog. We can resolve this issue by providing an extra parameter called “suppress_response_codes” which is meant to be used with apps that can only handle 200 response codes and don’t allow for authentication.

As you can see that we are using suppress_response_code so we need to use our own code for error and exception handling for cases where user is not authenticated. Take a look at the following code

Using the above code you can detect the twitter user and ask him to follow you or retweet your content thus giving more exposure to your content.

If you’ve got any thoughts, comments or suggestions for things we could add, leave a comment! Also please Subscribe to our RSS for latest tips, tricks and examples on cutting edge stuff.

0 I like it
0 I don't like it