Making user follow another user can get its twitter username - twitter

I have a button on my website which says "Follow"
When a user clicks on this button I want the following to happen:
Twitter login window opens
User enters user/password and logs in
User has now started following
That login window now closes (or a close button clicking on which closes the window) and user is back on my website and I get its twitter username through some API which user just entered so I can insert it in my database.
Is this possible?
What I want to achieve is, I want to get username of users who follow me and save them in database.

In case #penartur's answer doesn't work for you, you may want to look at: https://dev.twitter.com/docs/intents/events. Although I have to admit that I've never used it : )

Related

How can I return the user to the login page if they click 'Cancel'?

I am using an OpenCart HybridAuth extension to allow users to login using their Social Media login credentials. This has been implemented correctly and a user is able to create a new account, however if I click the cancel button when prompted to give permission to the application, it leads me to a black page (URL Parameters: ?route=hybrid/auth&provider=Twitter):
How can I fix this so that it leads me back to either the login page?

iOS SSKeyChain and Login Check

I got the SSKeyChain working and tested that what is retrieved is same as what was previously stored. I am conducting all of this in the login action when user presses the button. I want to know if what I am doing is correct or not (illustrated in steps below):
User launches application for first time, landing page has creating account or logging in.
User provides logging in credentials and presses the button
In the body of the action, I take the parameters query database (HTTP) and if response is valid, user proceeds. If not, user requested to re-enter credentials.
Once and if user login successfully, I will use SSKeyChain to store his credentials (but what use are these credentials for me in the future?)
What I am really asking is: what is the use of SSKeyChain in above scenario? Also if the user login successfully, where am I going to store his credentials (is it via SSKeyChain) so that next time he will skip the login screen (like facebook, twitter apps).

Rails: Sign in Users with just an email using Devise

Here is my situation. I am letting users to sign up in a landing page so that when the page is launched we can contact them. They are just entering their email.
What I am looking for is to automatically sign the user in, after he signs up because I want to be able to know if the just signed up User clicks on a button that is shown right away his sign up is finished.
How could I make it so that I know the email of the user who signed up? Where should I store this so that with a Javascript listener I am able to listen for a click and send that email back to the server?
Thanks

how to get a response to know if the user has actually tweeted

i have a webpage. on it, i have added a twitter tweet button, available here
http://twitter.com/about/resources/tweetbutton
using this, the user is able to connect via twitter, and also post tweets. another thing possible is that user clicks on the button, maybe even logs in with twitter, but closes the popup without tweeting.
now, i need to get some kind of response to know when the user has actually tweeted. if the user has tweeted, i have to display a message on my native webpage saying 'thank you for tweeting' and IF POSSIBLE, the tweet text that he tweeted.
any ideas?

unique user login

I'm using forms authentication to log users onto my website.
But what happens if someone is trying to login with the same details from different machines at the same time? Is there a way to check this?
Ideally, I'd like to display a message to the second attempt saying that that user account is already logged in..
Thanks
Hold that information server-side (the list of users that are already logged in). Then, on each login, check if not already in that list.
When ever a login happens save the values of Username and Password in Sessions and after that for every login check with the already logged in values in the sessions, if matches display a message and dont allow to login.

Resources