Hi Iam using spring social for Facebook login when I'm trying to connect to Facebook api following error occur please anyone know how to solve this
{
"error": {
"message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration.",
"type": "OAuthException",
"code": 191
}
}
im trying it from localhost:8080 and i have given site url in facebook api as www.sample.com
Probably you need to edit your host file entry:
Linux :
/etc/hosts
Windows:
C:\Windows\System32\drivers\etc\hosts