Basic fblogin fucntion with library