Facebook OAuth redirect_uri问题'Given URL is not permitted by the application configuration.'



通过重定向到以下url请求授权时:

https://graph.facebook.com/oauth/authorize?client_id=144921372242843&redirect_uri=http://localhost:18080/grails/facebook/facebookLogin&scope=user_about_me

Facebook返回错误消息(JSON格式):

无效的redirect_uri给定的URL不被应用程序配置允许。'

如果我将redirect_uri中使用的端口号从18080更改为8080,则工作正常。有人知道Facebook会接受哪些移植吗?

正如配置中的某处所说,为了能够在本地主机上"测试"应用程序,您需要使用端口8080。我真的看不出你为什么要使用18080,用于PureMessage管理器

相关内容

最新更新