sha*_*aka 6 django facebook django-socialauth
我正在使用我的django网络应用程序使用social-auth.当我在生产环境中访问/ login/facebook时,用户可以使用他们的facebook数据登录.但是在我访问的开发环境中
http://localhost:8000/login/facebook/,
Run Code Online (Sandbox Code Playgroud)
我收到一个错误说
An error occurred. Please try again later.
API Error Code: 191
API Error Description: The specified URL is not owned by the application
Error Message: Invalid redirect_uri: Given URL is not allowed by the Application configuration.
Run Code Online (Sandbox Code Playgroud)
我相信这是因为域名是localhost:8000.我如何解决这个问题,以便在我的开发环境中使用facebook登录?
我刚刚在阅读 Heroku/Facebook 文档时看到了这个问题的答案。
为此,您必须创建第二个应用程序并将其链接到本地主机,以便在本地测试它。
您可以在这里找到更多信息:https://devcenter.heroku.com/articles/facebook#1-creating-a-development-facebook-app
| 归档时间: |
|
| 查看次数: |
3482 次 |
| 最近记录: |