This is exactly what the Social Connected module does... so I would really suggest you use that.
But if that is totally out of the question, you can log in a Sitecore user by just its username like this:
Sitecore.Security.Authentication.AuthenticationManager.Login("username_here");