Is there a way to use the username and password stored in a variable be used to authenticate a user on facebook using facebook api using oauth?
If not is there a way to do so without using oauth?
No. The whole point of using OAuth is that the user never has to give you (an untrusted third party) their password. So doing so would defeat the point.