Support facebook/twitter authentication. ref #323