在Facebook API中,有一个请求提供有关特定OAuth访问令牌所针对的应用程序的详细信息。例如,我可以发送
http://graph.facebook.com/app?access_token=ABC...123
它将返回有关为其生成访问令牌的应用程序的信息。它与获取生成访问令牌的用户信息非常相似。
http://graph.facebook.com/me?access_token=ABC...123
我的问题与微软的Live Connect RESTful API中的并行调用有关。有一个直接等效的/me
请求返回用户的唯一ID,但我找不到与/app
请求并行的任何文档(MS术语中的客户端)。
https://apis.live.net/v5.0/me?access_token=ABC...123
{
"id": "1234abc1a1abc123",
"name": "test test",
"first_name": "test",
"last_name": "test",
"gender": null,
"locale": "en_US"
}
https://apis.live.net/v5.0/app?access_token=ABC...123
{
"error": {
"code": "request_url_invalid",
"message": "The URL contains the path 'app', which isn't supported."
}
}
https://apis.live.net/v5.0/client?access_token=ABC...123
{
"error": {
"code": "request_url_invalid",
"message": "The URL contains the path 'client', which isn't supported."
}
}