【问题标题】:Laravel Socialite Facebook can't get user detailsLaravel Socialite Facebook 无法获取用户详细信息
【发布时间】:2015-06-09 20:27:10
【问题描述】:

我正在学习以下教程
http://tutsnare.com/social-authentication-in-laravel-5/
我完全按照上述步骤操作,但是当我尝试转储使用以下代码检索到的用户对象时:

$user = Socialize::with('github')->user();
dd($user);

这没有给出任何输出。不过

$user = Socialize::with('github');
dd($user);

确实返回以下对象:

GithubProvider {#194 ▼
  #scopes: array:1 [▶]
  #request: Request {#37 ▶}
  #clientId: "a client id here"
  #clientSecret: "a client secret here"
  #scopeSeparator: ","
  #encodingType: 1
  #stateless: false
  +"redirectUrl": "My redirect URL
}

【问题讨论】:

    标签: php facebook laravel laravel-socialite


    【解决方案1】:

    当我设置我的服务器时,机器产生了一个 SE Linux 错误,说 httpd 服务试图保存在 laravel 的日志中。
    后来我注意到了这个错误并stackoverflow了这个错误,找到了以下解决方案。
    SELinux prevented httpd(usr/sbin/httpd) write access to /var/www/html/bookings/templates_c
    正如问题中所说的那样,瞧!完成!

    【讨论】:

      猜你喜欢
      • 2018-11-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-02-18
      • 2019-07-30
      • 1970-01-01
      相关资源
      最近更新 更多