Properties p = new Properties();
setupProvider("api.github.com", p, "key", "secret", "user:email");
setupProvider("graph.facebook.com", p, "key", "secret", "email");
...
String url = manager.getAuthenticationUrl(request.getParameter("provider"), successUrl, Permission.CUSTOM);