嗨Iam使用spring social for Facebook登录当我尝试连接到Facebook api时出现错误,请有人知道如何解决此问题
{
"error": {
"message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration.",
"type": "OAuthException",
"code": 191
}
}
我从localhost:8080尝试它,我已经在facebook api中提供了网站网址www.sample.com
答案 0 :(得分:0)
您可能需要编辑主机文件条目:
127.0.0.1 your_machine_name
127.0.0.1 your_machine_name.com
Linux:/etc/hosts
Windows:C:\Windows\System32\drivers\etc\hosts