简体   繁体   English

新的Facebook登录Codeigniter

[英]New Facebook Login with Codeigniter

i have implemented many code in my project.I am not able to identify the issue. 我在我的项目中实现了很多代码。我无法识别问题。 Which URL i need to use with this Everytime i get this error. 我需要使用哪个URL每次我都会收到此错误。

Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. 应用程序配置不允许使用URL:应用程序的设置不允许使用一个或多个给定的URL。 It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains. 它必须与网站URL或Canvas URL匹配,或者域必须是App域之一的子域。

put mu redirect and return URL string as - "http:// localhost / facebook/" 把mu重定向和返回URL字符串作为 - “http:// localhost / facebook /”

Same string i put in my FB App Account as "Site URL" : same line as above 我在FB App帐户中输入的相同字符串为“站点URL”:与上面相同的行

I know this is repeated question but ... 我知道这是重复的问题,但......

Canvas URL should be 画布网址应该是

http://localhost/facebook/

without spaces or otherwise. 没有空格或其他。 In App Domains you should also add 在应用程序域中,您还应该添加

localhost

Facebook login do not work locally, also you need to mention the URL in you facebook APP Setting Facebook登录不在本地工作,您还需要在Facebook APP设置中提及URL

Go through following link for more details: 通过以下链接了解更多详情:
http://code.tutsplus.com/tutorials/how-to-authenticate-users-with-facebook-connect--net-12302 http://code.tutsplus.com/tutorials/how-to-authenticate-users-with-facebook-connect--net-12302

Use IP Address ie 127.0.0.1 instead of localhost 使用IP地址,127.0.0.1而不是localhost

and one more thing you should check .ie you need to define redirect_url along with your config and which is must be same as site_url you define in your facebook app 还有一件事你应该检查。你需要定义redirect_url和你的配置,并且必须与你在facebook app中定义的site_url相同

结帐http://subhra.me/using-facebook-php-sdk-3-codeigniter-2-1/这是一个非常简单的教程。

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

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