验证失败! Facebook返回无效的用户ID [英] Authentication failed! Facebook returned an invalid user id

查看:520
本文介绍了验证失败! Facebook返回无效的用户ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 opencart 2.0.1.1 使用一个模块,名为社交登录免费,并使用 facebook-php-3.2 正确的,但现在当用户点击使用Facebook登录时,它正确到
facebook oath登录对话框,当用户点击继续时,它返回此错误
身份验证失败。用户已取消认证或提供商拒绝连接。 Ooophs,我们得到一个错误:验证失败!

I am using a module on opencart 2.0.1.1 named Social Login Free and using facebook-php-3.2 Login with facebook was working correctly but now when a user clicks on login with facebook it takes it correctly to the facebook oath login dialog and when user clicks continue it returns this error Authentification failed. The user has canceled the authentication or the provider refused the connection. Ooophs, we got an error: Authentication failed! Facebook returned an invalid user id. I have tried several solutions but failed.

  public static $CURL_OPTS = array(
    CURLOPT_CONNECTTIMEOUT => 60,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_TIMEOUT        => 60,
    CURLOPT_USERAGENT      => 'facebook-php-3.2',
    CURLOPT_SSL_VERIFYPEER => false,
    CURLOPT_SSL_VERIFYHOST => false
  );

protected $trustForwarded = true;
protected $allowSignedRequest = false;

没有任何工作请帮忙。

更新:

这不重要,因为我不得不将facebook-php-sdk升级到v5,它解决了我的问题! tada ...

It is not a duplicate as in my case I had to upgrade facebook-php-sdk to v5 and it solved my problem! tada...

推荐答案

Facebook升级版本从2.2到2.3我到目前为止读过的是访问令牌是现在不同于以前和json编码。这个变化确实发生在03.25.2017我与hybridauth有同样的问题,但不知道如何解决。我希望有帮助。

Facebook upgraded api graph version from 2.2 to 2.3 what i did read so far is that the access token is now different than before and json encoded. The change did happen on 03.25.2017 I have the same problem with hybridauth but no idea how to solve. I hope that helps.

facebook图表api不能从2.2到2.3

这篇关于验证失败! Facebook返回无效的用户ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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