Hi @Ulises Figueroa, Maybe I will come a little late, but here is how I did it:
Start with the original script tag at the top of the page in the chapter section:
<script> Client Id Number here: onLoad: onLinkedInLoad authorize: true </script>
Then, in your JS file (I placed an external JS file to handle this API / Auth signature), place the following data:
function onLinkedInLoad() { IN.Event.on(IN, "auth", getProfileData); } function onSuccess(data) { console.log(data); } function onError(error) { console.log(error); } function getProfileData(){ IN.API.Profile("me").fields(["firstName","lastName", "email-address", "positions"]).result(function(data) { var profileData = data.values[0]; var profileFName = profileData.firstName; var profileLName = profileData.lastName; if(data.values[0].positions._total == "0" || data.values[0].positions._total == 0 || data.values[0].positions._total == undefined) { console.log("Error on position details"); var profileCName = "Details Are Undefined"; } else { var profileCName = profileData.positions.values["0"].company.name; } var profileEName = profileData.emailAddress;
Then, last but not least, add the following to your HTML DOCUMENT, which will help you initiate a popup window for the attached registration form:
<script type="in/Login"></script>
The above setup worked for me. Of course, this will help you.
Greetings and have a nice day.
Sricharan krishnan
source share