2

最近,我的 Vanilla 论坛实例停止通过 Facebook 对用户进行身份验证。而是在身份验证页面中显示错误消息“需要唯一 ID”。

香草论坛错误

4

1 回答 1

3

经过一番研究,我发现了这篇文、这个github 问题和这个拉取请求

现在我修复了getAccessToken()替换这个的函数:

    if (strpos(val('content_type', $Info, ''), '/javascript') !== false) {
        $Tokens = json_decode($Contents, true);
    } else {
        parse_str($Contents, $Tokens);
    }

有了这个:

    if (strpos(val('content_type', $Info, ''), '/javascript') !== false) {
        $Tokens = json_decode($Contents, true);
    } else if (strpos(val('content_type', $Info, ''), '/json') !== false) {
        $Tokens = json_decode($Contents, true);
    } else {
        parse_str($Contents, $Tokens);
    }

由于几天前合并了 Pull Request,下一个版本应该会解决这个问题。

于 2017-04-12T22:39:46.097 回答