I am using wordpress but I need to put a twitter @anywhere / login connect button.
What my issue is, how in the world would I know what their password is?
it’s all fine getting the username etc… but how would I trigger my wordpress to login the user without knowin his/her password, all I can do right now is know that they are loggedin on twitter thats about it, but obviously twitter wont give his/her password away!
any suggestions?
UPDATED
This is the process so far…
- Display twitter connect button
- User the on comeplete listener to capture users “screen_name”
- ??? Now I need to assign a password to the form to log this user in…???
That is where I am stack.
If you’re using Twitter’s OAuth to authenticate users, you don’t need their password. If you can get a user info (name, email, etc), then the user is authenticated in Twitter and has authorized your app to access his data. Take the data and do your job (create your local user account and log him in programmatically).
Here’s a plugin that might help you: http://wordpress.org/extend/plugins/simple-twitter-connect/
Also here’s a WordPress API call that lets you log user in: http://codex.wordpress.org/Function_Reference/wp_signon