【发布时间】:2011-07-26 20:34:02
【问题描述】:
我正在尝试将 Facebook 连接添加到我的项目中。我在网上搜索了一下,发现django-socialregistration。
我遵循了所有必需的说明,并且所有说明都正常工作。我创建了一个测试页面并放置了所有必要的 template_tags,Facebook 按钮显示在我的页面上。问题是当我尝试通过 Facebook 连接时,我被重定向到一个错误页面,上面写着:
API Error Code: 191
API Error Description: The specified URL is not owned by the application
Error Message: redirect_uri is not owned by the application.
可能是我的应用设置错误。这是我的域的应用设置:
Site URL : http://localhost:8000/test
Site Domain : localhost
我想,我收到此错误是因为 django-socialregistration 将我的页面重定向到其先前定义的 url。我发现,它使用 _get_next() 函数。但我不知道如何将我自己的 url 传递给这个函数。
那么,我该如何解决这个错误?来自我的应用设置?
【问题讨论】: