简体   繁体   中英

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. Protocols, domains, and ports must match.

Blocked a frame with origin " https://platform.linkedin.com " from accessing a frame with origin website. The frame requesting access set "document.domain" to "linkedin.com", but the frame being accessed did not. Both must set "document.domain" to the same value to allow access. 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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