2013-03-26 46 views
3

我想用Facebook登录我的网站并将用户数据保存到数据库中,为此我使用了坦克认证社交库,每件事情都很完美,但是当我点击登录与Facebook这表明我这样在codeigniter中使用tank auth social重定向问题

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. 

什么是该问题的错误,我能不明白的地方使用分步我错了即时通讯,但我不知道这是什么问题呢,没有任何一个帮助我会非常感谢他,比ks提前一吨,

+1

好问题,我也想要解决方案 – user2046638 2013-03-26 09:46:19

回答

1

你的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>例如。

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

1

你必须在facebook应用程序设置中设置你的应用程序URL

Given URL is not allowed by the Application configuration. 
相关问题