簡體   English   中英

Hybridauth LinkedIn-獲取完整個人資料的問題

[英]Hybridauth LinkedIn - Problems to get full profile

我創建了一個僅用r_fullprofile授予的LinkedIn應用程序,設置為Live而不是Development,並獲得了我的API密鑰和秘密密鑰。

在hybridauth的config.php中,我有:

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

我沒有問題可以進入登錄/授權屏幕,但是...該屏幕要求我授予:-您的個人資料概述,而不是您的完整個人資料。 -您的電子郵件地址-網絡更新

我仍然登錄並獲得授權,再次重定向到hybridauth到我的域。 它向我顯示$ adapter-> getUserProfile()沒問題,但這只是基本的配置文件。

我嘗試使用沒有成功:

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

要么

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

它返回:

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

我如何獲得完整的個人資料? 我需要獲取體驗,技能和教育數據。

轉到受保護的/擴展名/hoauth/hybridauth/Hybrid/Thirdparty/LinkedIn/LinkedIn.php

並編輯第126行。

范例:

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';

希望這可以幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM