您无法直接访问此页面 - HybridAuth社交登录 [英] You cannot access this page directly - HybridAuth Social Login

查看:156
本文介绍了您无法直接访问此页面 - HybridAuth社交登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的网站上使用 HybridAuth 社交插件,从Facebook登录和其他网站,

I am using HybridAuth social plugin in my website to login from facebook and other websites,

一切都正常,但是当我检查其他电脑时,有一个错误:

everything is working fine, but when I checked on other computers, there is an error:

您不能直接访问此页面

,我注意到浏览器使用 WWW 在地址栏中,浏览器在同一台电脑上,例如:opera不使用 www ,所以没有错误浏览器。

and I noticed that the error comes when the browser use WWW in the address bar, the browser on same computer eg: opera not using the www so there is no error on those browser.

请帮助我如何解决这个错误,以便登录可以从任何浏览器完成。

Please help me how can I fix this error so login can be done from any browser.

推荐答案

重新启动是因为Facebook在不同的php会话中回调,并且无法从调用者会话中访问配置信息。
看看Endpoint.php
如果(!$ storage-> config(CONFIG))...
原因是因为我在我的网站中使用127.0.0.1但是return_uri是与localhost因为Facebook的限制。
PHP在这种情况下构建不同的会话。

The reasen is because Facebook callback in different php-session and cant access config info from caller session. Look at Endpoint.php if ( ! $storage->config( "CONFIG" ) ) ... The rason was because I use in my site with 127.0.0.1 but return_uri was with localhost because of Facebook restrictions. PHP builds different sessions in this case.

这篇关于您无法直接访问此页面 - HybridAuth社交登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆