我们正在与 Linked IN 集成以提取用户配置文件。它工作正常,但我们注意到在一些 Windows 7 / IE 9 机器中,Linked IN 弹出窗口出现并且是空白的。我们在控制台中看到以下错误。
消息:对象不支持属性或方法“替换”行:861 字符:17 代码:0 URI:http ://platform.linkedin.com/js/framework?v=0.0.2000-RC1.21420-1403&lang= zh_CN
下面的代码片段
<script type="text/javascript" src="https://platform.linkedin.com/in.js?async=false" >
api_key: tw6oqfav7ms1
authorize:false
</script>
//We have a custom image for linkedIN, onclick of the same below code is called.
$("#mylinkedin").click(function () {
IN.UI.Authorize().params({"scope":["r_fullprofile", "r_emailaddress","r_contactinfo"]}).place();
IN.Event.on(IN, "auth", onLinkedInAuth);
});
function onLinkedInAuth() {
IN.API.Profile("me").fields([ "id","firstName", "location","lastName","skills","positions","educations","languages","phone-numbers","certifications","emailAddress","mainAddress"]).result(displayProfiles);
IN.User.logout(); //After we take the data, we do a log out
$.get("https://api.linkedin.com/uas/oauth/invalidateToken");
}
function displayProfiles(profiles) {
//Access profile and process
member = profiles.values[0]
...........
}