Linked INと統合して、ユーザープロファイルを抽出しています。正常に動作していますが、一部のWindows 7 / IE 9マシンでは、LinkedINポップアップが表示されて空白になっています。コンソールに以下のエラーが表示されます。
メッセージ:オブジェクトはプロパティまたはメソッドをサポートしていません'replace'行:861文字:17コード:0 URI: http: //platform.linkedin.com/js/framework?v =0.0.2000-RC1.21420-1403&lang= en_US
以下のコードスニペット
<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]
...........
}