Search code examples
javascripthtmllinkedin-api

LinkedIn Profile Builder not displaying anything?


I am trying to use the LinkedIn Profile Builder to display a small preview of a profile on my blog.

The code I am using is this (replacing XXXXXX with a REAL user id):

<html>
<meta charset="UTF-8">
<script src="http://platform.linkedin.com/in.js" type="text/javascript"></script>
<script type="IN/MemberProfile" data-id="https://www.linkedin.com/in/XXXXXX" data-format="inline"></script>
</html>

For some reason when I do this, nothing is displayed. I get no error message in the console just a blank white page. I currently have only the snipped above in a .HTML page and it still doesn't load.

Any tips would be greatly appreciated.


Solution

  • The script tags have to be in the body tags.