2
那么我使用谷歌,FB和Twitter的HybridAuth和FB工作得很好,谷歌返回空用户配置文件。HybridAuth getUserProfile返回试图获取非对象的属性
的accessToken是OK
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。 – carli