Drupal 8-Facebook社交登录

Drupal 8-Facebook社交登录,facebook,authentication,drupal-8,Facebook,Authentication,Drupal 8,我尝试使用Facebook登录时遇到问题: TypeError:传递给League\OAuth2\Client\Provider\AbstractProvider::getResourceOwner()的参数1必须是League\OAuth2\Client\Token\AccessToken的实例,给定为空,在League\OAuth2\Client\Provider\AbstractProvider->getResourceOwner()第53行的/var/www/html/modules/c

我尝试使用Facebook登录时遇到问题: TypeError:传递给League\OAuth2\Client\Provider\AbstractProvider::getResourceOwner()的参数1必须是League\OAuth2\Client\Token\AccessToken的实例,给定为空,在League\OAuth2\Client\Provider\AbstractProvider->getResourceOwner()第53行的/var/www/html/modules/contrib/social\u auth\u facebook/src/FacebookAuthManager.php中调用(第765行/var/www/html/vendor/league/oauth2 client/src/Provider/AbstractProvider.php)#0/var/www/html/modules/contrib/social_auth_facebook/src/FacebookAuthManager.php(53):league\oauth2\client\Provider\AbstractProvider->getResourceOwner(NULL)#1/var/www/html/modules/contrib/social_auth/src/Controller/OAuth2ControllerBase.php(253):Drupal\social\u auth\u facebook\facebook authmanager->getUserInfo()\2/var/www/html/modules/contrib/social\u auth\u facebook/src/Controller/facebook authcontroller.php(80):Drupal\social\u auth\Controller\OAuth2ControllerBase->processCallback()\3[内部函数]:Drupal\social\u auth\u facebook\Controller\facebook authcontroller->callback()php(123):调用用户函数数组(数组,数组)#5/var/www/html/core/lib/Drupal/core/Render/Renderer.php(582):Drupal\core\EventSubscriber\earlyrenderingcontrollerwrapersubscriber\earlyrenderingcontrollerwrapersubscriber->Drupal\core\EventSubscriber{closure}()#6/var/www/html/core/lib/Drupal/core/EventSubscriber/earlyrenderingcontrollerwrapersubscriber.php(124):Drupal\core\Render\Renderer->executeindercontext(Object(Drupal\core\Render\RenderContext),Object(Closure))#7/var/www/html/core/lib/Drupal/core/EventSubscriber/earlyrenderingcontrollerwrapersubscriber.php(97):Drupal\Core\EventSubscriber\earlyrenderingcontrollerrappersubscriber->wrapcontrollerexecutionindercontext(Array,Array)#8/var/www/html/vendor/symfony/http kernel/HttpKernel.php(151):Drupal\Core\EventSubscriber\earlyrenderingcontrollerrappersubscriber->\Drupal\Core\EventSubscriber{closure}()php(68):symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(symfony\Component\HttpFoundation\Request),1)#10/var/www/html/core/lib/Drupal/core/StackMiddleware/Session.php(57):symfony\Component\HttpKernel\HttpKernel->->->句柄(Object(symfony\Component\HttpFoundation\HttpFoundation\Request),1,true)php(47):Drupal\core\StackMiddleware\StackMiddleware\Session->handle(对象(Symfony\Component\HttpFoundation\Request),1,true)#12/var/www/html/core/modules/page\u cache/src/StackMiddleware/PageCache.php(106):Drupal\core\StackMiddleware\kernelphrandle->(对象(Symfony\Component\HttpFoundation\Request),1,true)#13/var/www/html/core/modules/page\u cache/src/StackMiddleware/PageCache.php(85):Drupal\page\u cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request),1,true)#14/var/www/html/core/lib/Drupal/core/core/core/core/core/middleware/StackMiddleware/reverseProxy:Drupal\page\u cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request),1,true)#15/var/www/html/core/lib/Drupal/core/StackMiddleware/NegotiationMiddleware.php(52):Drupal\core\StackMiddleware\reverseProxy中间件->handle(Object(Symfony\Component\HttpFoundation\Request),1,true)php(23):Drupal\Core\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request),1,true);(17/var/www/html/Core/lib/Drupal/Core/DrupalKernel.php(693):stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request),1,true)18/var/www/html/index.php(19):Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))#19{main}

有人能帮我吗


drupal/social_api、drupal/social_auth、drupal/social_auth_facebook、league/oauth2客户端

我已将所有库更新为dev,但问题仍然存在


TypeError:传递给League\OAuth2\Client\Provider\AbstractProvider::getResourceOwner()的参数1必须是League\OAuth2\Client\Token\AccessToken的实例,给定为空,在League\OAuth2\Client\Provider\AbstractProvider->getResourceOwner()第53行的/var/www/html/modules/contrib/social\u auth\u facebook/src/FacebookAuthManager.php中调用

有人能帮我吗?
不是一个有效的SO问题。你可能应该发布一些产生此错误的代码。