I am trying to integrate facebook login with my website. Here is my some part of the code:
public void socialConnect() throws Exception {
Properties props = System.getProperties();
props.put("graph.facebook.com.consumer_key", "561379830565954");
props.put("graph.facebook.com.consumer_secret", "883e8d729d0358b4040fbffa762d832d");
props.put("graph.facebook.com.custom_permissions", "publish_stream,email,user_birthday,user_location,offline_access");
SocialAuthConfig config = SocialAuthConfig.getDefault();
config.load(props);
manager = new SocialAuthManager();
manager.setSocialAuthConfig(config);
ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
String successURL = externalContext.getRequestContextPath() + "/socialLoginSuccess.xhtml";
String authenticationURL = manager.getAuthenticationUrl(providerID, successURL);
FacesContext.getCurrentInstance().getExternalContext().redirect(authenticationURL);
}
I get the following error:
{
"error": {
"message": "redirect_uri isn't an absolute URI. Check RFC 3986.",
"type": "OAuthException",
"code": 191
}
}
What should be the redirecct_uri? How can i fix it can anyone help?
Thanks