我安装了drupal 7杂交https://www.drupal.org/project/hybridauth。我为Google、Facebook、Twitter和LinkedIn配置了模块。除了谷歌,他们工作得很好。根据HybridAuth模块的指令,我去了https://code.google.com/apis/console#access。然后,我使用“created”按钮创建了应用程序,并设置了我为其他社交登录所做的所有信息。
之后,我尝试使用google链接登录,但是他们显示了一个错误:“处理您的请求时出错了!”我搜索了更多的时间。但我不能解决这个问题。
然后我去看了我的drupal网站的日志。我发现了以下错误信息-
DOMAIN-COM/drupalsocialauth/hybridauth/window/Google?destination=node&destination_error=node 定位:
消息:异常:用户配置文件请求失败!谷歌回复了一个无效的回复。in**混合_Providers_Google->getUserProfile()( /home/pydream/public_html/drupalsocialauth/sites/all/libraries/hybridauth/hybridauth/Hybrid/Providers/Google.php).第87行)
你能帮我修一下吗?
谢谢你抽出时间。
发布于 2014-09-18 20:37:16
我解决了这个问题,多亏了这里的最后一个评论:https://groups.google.com/forum/#!topic/hybridauth/dNSUDyWpc5w
在https://code.google.com/apis/console#access的项目下
API &auth-> API启用: Contacts和Google+ API
和
API&auth->同意屏幕,确保完成同意屏幕并保存
发布于 2015-04-27 09:11:29
在我的情况下,变量表中的hybridauth_provider_Google_scope不是变量。我执行了命令:
drush vset hybridauth_provider_Google_scope "https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email"现在Google auth运行正常。
P.S.可能和drush vset hybridauth_provider_Google_scope "https://www.googleapis.com/auth/plus.profile.emails.read"在一起也会正常工作。我没有检查这个变体。
发布于 2016-12-09 07:15:43
请尝试在此文件中进行注释:
/hybridauth/hybridauth/Hybrid/thirdparty/OAuth/OAuth2Client.php这句话:
// curl_setopt($ch, CURLOPT_USERAGENT , $this->curl_useragent );https://stackoverflow.com/questions/25643653
复制相似问题