[英]Authentication failed! Facebook returned an invalid user id on Yith social login wordpress
Anyone can help me to solve this problem? 有人可以帮助我解决这个问题吗? I am using yith woocommerce social login plugin on my wordpress.
我在我的wordpress上使用ithith woocommerce社交登录插件。 I tried to implement login via facebook and g+.
我试图通过facebook和g +实现登录。 While using g+ login it's successfully work, but while using facebook there is no response and my page just reload my page and append this
使用g +登录时,它可以成功运行,但是使用Facebook时,没有任何响应,我的页面只需重新加载我的页面并附加此内容即可
#_=_
character into my url. 字符输入我的网址。
plugins/yith-woocommerce-social-login/logs/log.txt show report below plugins / yith-woocommerce-social-login / logs / log.txt在下面显示报告
Hybrid_Auth initialize: A stored Error found, Throw an new Exception and delete it from the store: Error#5, 'Authentication failed!
Hybrid_Auth初始化:找到一个存储的错误,抛出一个新的异常并将其从存储中删除:错误#5,“验证失败! Facebook returned an invalid user id.'
Facebook返回了无效的用户ID。” --
-
wp_content/debug.log show report below wp_content / debug.log在下面显示报告
PHP Fatal error: Call to a member function authenticate() on null in /wp-content/plugins/yith-woocommerce-social-login/includes/class-yith-social-login.php on line 156
PHP致命错误:在第156行的/wp-content/plugins/yith-woocommerce-social-login/includes/class-yith-social-login.php中,对成员函数authenticate()的调用为null
I had the same problem. 我有同样的问题。 I solve it by changing these lines:
我通过更改这些行来解决它:
\\wp-content\\plugins\\yith-woocommerce-social-login\\includes\\hybridauth\\Hybrid\\Providers\\Facebook.php: 27 \\ wp-content \\ plugins \\ yith-woocommerce-social-login \\ includes \\ hybridauth \\ Hybrid \\ Providers \\ Facebook.php: 27
public $scope = ['email'];
and 和
\\wp-content\\plugins\\yith-woocommerce-social-login\\includes\\hybridauth\\Hybrid\\Providers\\Facebook.php: 85 \\ wp-content \\ plugins \\ yith-woocommerce-social-login \\ includes \\ hybridauth \\ Hybrid \\ Providers \\ Facebook.php: 85
$accessToken = $helper->getAccessToken("https://[your-domain]/wp-content/plugins/yith-woocommerce-social-login/includes/hybridauth/?hauth_done=Facebook");
And 和
https://[your-domain]/wp-content/plugins/yith-woocommerce-social-login/includes/hybridauth/?hauth_done=Facebook must be registered in Valid OAuth Redirect URIs in FB administration https:// [您的域] / wp-content / plugins / yith-woocommerce-social-login / includes / hybridauth /?hauth_done = Facebook必须在FB管理中的有效OAuth重定向URI中注册
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.