gpt4 book ai didi

php - Yii2 AuthClient 不适用于 facebook 登录

转载 作者:可可西里 更新时间:2023-11-01 00:59:19 25 4
gpt4 key购买 nike

当点击 facebook 小部件时,它将重定向到此链接并给我错误页面未找到

siteURl/frontend/web/site/auth?authclient=facebook&code=AQB-buOgEj-2wA1zGkMoW9Xq-i6Rh6IEAQ_V4P1JN3EaVdxJ-EcPThJ3mX61bg2uzpEM1JNGyrrWAXNCFOspAiw0eaaNP6SFF0fe7bun7T_D-flopSJnC-vSWU3PHrqZZETwZQUHNSnIZb_homm8zrhobNJay66lLcWuo7mhrk6_rOLLvCI-XLNbdb6U57loMS8pt0E0IHFdnItzbi2Yxxe75h97xC3boMxlJgQoyXpVBdL7PBLPgTvoW_d_QwySrUxeCmOjYCODo9dbhrTlWJIOtHIIYXQSS8uEu7Ms-dVZYQjWpl4HdV46Wtc190zIeHAXkYxBa_​​DQlWXL_hMa4KZq#_=_

在 Controller 中我添加了这样的 Action

//In actions:
'auth' => [
'class' => 'yii\authclient\AuthAction',
'successCallback' => [$this, 'onAuthSuccess'],
],

这是成功函数的实现

public function onAuthSuccess($client)
{
print_r('in'); exit;
$attributes = $client->getUserAttributes();


}

最佳答案

关于php - Yii2 AuthClient 不适用于 facebook 登录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31965050/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com