Authentication Salesforce OAuth2缺少oauth令牌

Authentication Salesforce OAuth2缺少oauth令牌,authentication,oauth-2.0,salesforce,salesforce-chatter,Authentication,Oauth 2.0,Salesforce,Salesforce Chatter,我正在执行所有步骤为salesforce获取oauth令牌,但无法完成最后一步。我想收集用户信息(电子邮件、名字、姓氏、缩略图) 因此,我进入了获取这些信息的步骤: <OAuth> <id> https://login.salesforce.com/id/00D90000000qdxPEAQ/00590000001hbAyAAI </id> <issued_at>1386648423427</issued_at> <scop

我正在执行所有步骤为salesforce获取oauth令牌,但无法完成最后一步。我想收集用户信息(电子邮件、名字、姓氏、缩略图)

因此,我进入了获取这些信息的步骤:

<OAuth>
<id>
   https://login.salesforce.com/id/00D90000000qdxPEAQ/00590000001hbAyAAI
</id>
<issued_at>1386648423427</issued_at>
<scope>id chatter_api</scope>
<instance_url>https://ap1.salesforce.com</instance_url>
<signature>YlnejSL3ZKkSmbnt916sLZuzt13UNUFGi+kGCjU7ql0=</signature>
<access_token>
00D90000000qdxP!AQsAQIcR.oo6y.EDuf3B4fzctQ2e7DK0L1kGjgxGSl.dBgetu3lUbZp.VDZjSIi7O1LXmTMWFZmOJVeRS.IQfvPL8VmhxLaC
</access_token>
</OAuth>

你的思路是正确的,你可以访问id URL,但是你需要在授权头中提供访问令牌,例如,
Authorization:Bearer{accessToken}
我曾经使用Google OAuth开发过一些东西,所以我尝试了类似
https://login.salesforce.com/id/00D50000000IZ3ZEAW/00550000001fg5OAAQ?access_token=access_token
(此格式受支持),但不幸的是,我得到了“缺少OAuth令牌”的响应,就像您所做的一样。然后我参考了,发现它只支持以下格式:

curlhttps://instance_name.salesforce.com/services/data/v20.0/ -H“授权:承载访问\u令牌”

您需要将access_令牌放在请求的头中,所以安装CURL,或者在程序中发送请求,并在头中使用access_令牌

   Missing_OAuth_Token