【发布时间】:2016-04-15 12:27:40
【问题描述】:
我在 google、FB 和 Twitter 上使用 HybridAuth,而 FB 工作得很好,google 返回空的用户资料。
AccessToken 没问题
getUserProfile() 数据设置为 NULL:
object(Hybrid_User)#8 (3) { ["providerId"]=> string(6) "Google" ["timestamp"]=> int(1452502079) ["profile"]=> object(Hybrid_User_Profile)#9 (22) { ["identifier"]=> NULL ["webSiteURL"]=> NULL ["profileURL"]=> NULL ["photoURL"]=> NULL ["displayName"]=> NULL ["description"]=> NULL ["firstName"]=> NULL ["lastName"]=> NULL ["gender"]=> NULL ["language"]=> NULL ["age"]=> NULL ["birthDay"]=> NULL ["birthMonth"]=> NULL ["birthYear"]=> NULL ["email"]=> NULL ["emailVerified"]=> NULL ["phone"]=> NULL ["address"]=> NULL ["country"]=> NULL ["region"]=> NULL ["city"]=> NULL ["zip"]=> NULL } } } }
知道要检查什么吗?
【问题讨论】:
-
#CLOSED 好的,它已修复。项目中似乎需要启用 Google+ API。
标签: oauth google-oauth hybridauth