我使用simple-linkedinphp和OAuth library連接到LinkedIn。當我運行demo.3.0.2.php,連接與LinkedIn和按藍色鍵「好吧,我會允許」我的錯誤:simple-linkedinphp:未定義索引:oauth
Notice: Undefined index: oauth on line 136.
LinkedIn->retrieveTokenAccess(): bad data passed, string type is required for $token, $secret and $verifier.
檢查該問題的進一步看來會話數據丟失當LinkedIn返回到腳本。 cURL似乎開始新的會話而不是使用初始會話。
你可以測試你的PHP配置,看看$ _SESSION是獨立工作的演示腳本嗎? http://www.phpf1.com/tutorial/php-sessions.html?page=4 – 2011-05-30 15:08:19