Implements OAuth with Facebook and Google