Added facebook functions and controllers