LinkedIn profile plugin on website

4

Dear, I would like to add my LinkedIn profile to my site made in HTML, I thought it was just copying the code generated in the link: link , but adding it after <body> nothing happens. Would anyone know how to include the correct way?

It generates a script like this and sends it to the site:

    <script src="//platform.linkedin.com/in.js" type="text/javascript"></script>
<script type="IN/MemberProfile" data-id="https://www.linkedin.com/in/xxxxxxx" data-format="inline" data-related="false"></script>
    
asked by anonymous 05.06.2017 / 21:38

2 answers

3

But just copy it yourself. You may be in trouble because of security. In fiddle, for example, you probably will not accept it because external content does not use SSL.

But if you test in TryIt from W3C , for example, it works.

View my profile example .

<!DOCTYPE html>
<html>

<body>
<script src="//platform.linkedin.com/in.js" type="text/javascript"></script>
<script type="IN/MemberProfile" data-id="https://www.linkedin.com/in/wurthmann" data-format="inline" data-related="false"></script>
</body>

</html>

You can try changing

src="//platform.linkedin.com/in.js"

by

src="https://platform.linkedin.com/in.js"

Or,gotothe link link and copy the contents of the script to have it locally and not rely on external content . Once this is done, put the script in the same location as html and call it like this:

<!DOCTYPE html>
<html>
<body>
<script src="NomeDoScript.js" type="text/javascript"></script>
<script type="IN/MemberProfile" data-id="https://www.linkedin.com/in/wurthmann" data-format="inline" data-related="false"></script>
</body>
</html>
    
06.06.2017 / 05:23
0

Sorry, I did not make it work with the above solution, but I still validated it, because it might work for other people. In this link h ttps: //www.linkedin.com / pulse / personal-branding-tip-how-create-linkedin-badge-your-web-merritt I followed the walkthrough and it worked normally, if anyone has the same security problem as me. vlw

    
11.06.2017 / 00:38