简体   繁体   English

Linkedin API连接问题

[英]Linkedin API Connection Issue

 I am trying to connect with linkedin in the site in chrome browser its showing the error:

Blocked a frame with origin " https://platform.linkedin.com " from accessing a frame with origin website. 阻止了源为“ https://platform.linkedin.com ”的框架访问源为网站的框架。 Protocols, domains, and ports must match. 协议,域和端口必须匹配。

Blocked a frame with origin " https://platform.linkedin.com " from accessing a frame with origin website. 阻止了源为“ https://platform.linkedin.com ”的框架访问源为网站的框架。 The frame requesting access set "document.domain" to "linkedin.com", but the frame being accessed did not. 请求访问的框架将“ document.domain”设置为“ linkedin.com”,但未访问框架。 Both must set "document.domain" to the same value to allow access. 两者都必须将“ document.domain”设置为相同的值以允许访问。 Code: 码:

<script type="text/javascript" src="https://platform.linkedin.com/in.js">
    api_key: hjltf4pxjaa3
    scope : r_basicprofile,r_fullprofile,r_network,rw_groups,r_emailaddress,w_messages
    onLoad: onLinkedInLoad
    authorize: false
    credentials_cookie: true
</script>
<script type="text/javascript">

    function onLinkedInAuth(){
        $.blockUI();
        IN.API.Profile("me")
        .fields("id","firstName","lastName","email-address","headline","pictureUrl","location:(name)","industry","positions","current-status","current-status-timestamp","last-modified-timestamp","associations","honors","interests","publications","patents","languages","skills","certifications","educations","courses","three-current-positions","three-past-positions","num-recommenders","recommendations-received","following","date-of-birth","connections","group-memberships")
        .result(displayProfiles);
       }

Please help me out.  Thanks in advance.

我认为这是一个Chrome问题,请尝试使用Firefox

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM