简体   繁体   English

Hybridauth LinkedIn-获取完整个人资料的问题

[英]Hybridauth LinkedIn - Problems to get full profile

I created a LinkedIn app with just r_fullprofile grant, setted to Live instead of Development, and got my API Key and Secret Key. 我创建了一个仅用r_fullprofile授予的LinkedIn应用程序,设置为Live而不是Development,并获得了我的API密钥和秘密密钥。

In the config.php of hybridauth, I have: 在hybridauth的config.php中,我有:

"LinkedIn" => array(
"enabled" => true,
"keys" => array("key" => "ABC", "secret" => "DEF"),
"scope" => "r_fullprofile"
)

I don't have problems to go to the login/authorization screen, BUT... this screen ask me to grant for: -Your Profile Overview, instead of Your Full Profile. 我没有问题可以进入登录/授权屏幕,但是...该屏幕要求我授予:-您的个人资料概述,而不是您的完整个人资料。 - Your Email Address - Network Updates -您的电子邮件地址-网络更新

I logged in and authorized anyway, was redirected to hybridauth again, to my domain. 我仍然登录并获得授权,再次重定向到hybridauth到我的域。 It shows me $adapter->getUserProfile() without problems, but it's just the basic profile. 它向我显示$ adapter-> getUserProfile()没问题,但这只是基本的配置文件。

I tried to use without success: 我尝试使用没有成功:

$adapter->api('/people/~');

or 要么

$adapter->api('/people/~', 'post');

It returns: 它返回:

LinkedIn Object([callback:protected] => [token:protected] => 
Array([oauth_token] => ... blah blah blah

How can I get the full profile? 我如何获得完整的个人资料? I need to get the Experience, Skills, and Education data. 我需要获取体验,技能和教育数据。

Go to Protected/extensions/hoauth/hybridauth/Hybrid/Thirdparty/LinkedIn/LinkedIn.php 转到受保护的/扩展名/hoauth/hybridauth/Hybrid/Thirdparty/LinkedIn/LinkedIn.php

and edit line 126. 并编辑第126行。

Example : 范例:

const _URL_REQUEST = ' https://api.linkedin.com/uas/oauth/requestToken?scope=r_basicprofile+r_emailaddress+rw_nus+r_network+r_fullprofile+r_contactinfo+w_messages '; const _URL_REQUEST =' https: //api.linkedin.com/uas/oauth/requestToken?scope=r_basicprofile+r_emailaddress+rw_nus+r_network+r_fullprofile+r_contactinfo+w_messages';

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM