繁体   English   中英

使用tank auth social在codeigniter中重定向问题

[英]Redirect issue in codeigniter with using tank auth social

我想用facebook登录我的网站,并将用户数据保存到数据库中,为此我使用坦克auth社交库,每件事情都很好,但当我点击登录Facebook时,它显示我这样的错误

   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.

它有什么问题,我无法理解我在哪里错误地使用一步一步但我不知道这是什么问题,是否有任何一个帮助我会非常感谢他,而不是提前一吨,

您必须在Facebook应用程序设置中设置您的应用程序URL

Given URL is not allowed by the Application configuration.

您的Facebook应用程序默认“拥有”画布网址http://apps.facebook.com/your_app ,但也是您必须输入的给定域名。 redirect_uri出于安全原因,只能将您重定向到其中任何一个。

如果你无法使这项工作,你可以让redirect_uri指向一个网站,如http://apps.facebook.com/my_redirect ,只需要控制器/ my_redirect.phpindex函数来回显 echo <script>top.location = 'http://google.com'</script>

无论如何,请检查您的应用程序中的设置,并更多地阅读这些错误,因为很多人发布了这些错误并获得了答案。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM