added facebook authentication code as well as code alignment has been done