facebook配置正确,回调报错!

bug问题 · sewers · 于 3年前 发布 · 1398 次阅读

用的宝塔环境!

谷歌授权登陆安装测试完成。fecebook根据文档正确填写!但是回调的时候报错!报错如下! ArgumentCountError Too few arguments to function Facebook\Helpers\FacebookRedirectLoginHelper::getLoginUrl(), 0 passed in /www/wwwroot/T/vendor/fancyecommerce/fecshop/app/appfront/modules/Customer/controllers/FacebookController.php on line 75 and at least 1 expected

  1. in /www/wwwroot/T/vendor/facebook/graph-sdk/src/Facebook/Helpers/FacebookRedirectLoginHelper.phpat line 140 131132133134135136137138139140141142143144145146147148149 /**
    • Returns the URL to send the user in order to login to Facebook. *
    • @param string $redirectUrl The URL Facebook should redirect users to after login.
    • @param array $scope List of permissions to request during login.
    • @param string $separator The separator to use in http_build_query(). *
    • @return string */ { return $this->makeUrl($redirectUrl, $scope, [], $separator); }

/**

  • Returns the URL to send the user in order to log out of Facebook. *
  • @param AccessToken|string $accessToken The access token that will be logged out.
  • @param string $next The url Facebook should redirect the user to after a successful logout.
共收到 1 条回复 问题提问
Fecmall#13年前 0 个赞

您debug一下代码,看看fb的登陆文件,自己排查一下吧,先。

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics