如何像在Facebook中一样使用LinkedIn Javascript API获取用户访问令牌?
我正在开发一个本地移动应用程序,我需要的是传递用户的访问令牌,并获取用户进行基于移动的操作的详细信息。我在Facebook上也做到了这一点。但是如何通过LinkedIn JavaScript API获取用户的访问令牌呢 Facebook API方式:如何像在Facebook中一样使用LinkedIn Javascript API获取用户访问令牌?,linkedin,linkedin-jsapi,Linkedin,Linkedin Jsapi,我正在开发一个本地移动应用程序,我需要的是传递用户的访问令牌,并获取用户进行基于移动的操作的详细信息。我在Facebook上也做到了这一点。但是如何通过LinkedIn JavaScript API获取用户的访问令牌呢 Facebook API方式: function statusChangeCallback(response) { // The response object is returned with a status field that lets the // ap
function statusChangeCallback(response) {
// The response object is returned with a status field that lets the
// app know the current login status of the person.
// Full docs on the response object can be found in the documentation
// for FB.getLoginStatus().
if (response.status === 'connected') {
// Logged into your app and Facebook.
console.log(response); ===> GOT USER ACCESS TOKEN FROM THIS RESPONSE
testAPI();
} else if (response.status === 'not_authorized') {
// The person is logged into Facebook, but not your app.
document.getElementById('status').innerHTML = 'Please log ' +
'into this app.';
} else {
// The person is not logged into Facebook, so we're not sure if
// they are logged into this app or not.
document.getElementById('status').innerHTML = 'Please log ' +
'into Facebook.';
}
}
如果您能在LinkedIn获得同样的帮助,我们将不胜感激 查看关于将JSAPI令牌交换为OAuth令牌的链接。您好,您提供的链接已断开。